caterham, sorry my english is not good.
I follow that code
This is my .htacces code:
DirectoryIndex index.php index.cgi index.pl index.shtml index.html
<Limit GET PUT POST>
order allow,deny
deny from 80.179.128.
deny from 64.140.49.
deny from 200.
allow from all
</Limit>
# deny most common except .php
<FilesMatch "\.
(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)
$">
deny from all
</FilesMatch>
#Disable .htaccess viewing from browser
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\config.php$">
deny from all
</Files>
ErrorDocument 404 /error.php
RewriteEngine On
RewriteRule ^index.html index.php
#Forums
#Forums
RewriteRule ^viewforum.* viewforum.php
RewriteRule ^viewtopic.* viewtopic.php
RewriteRule ^forum([0-9]*).* viewforum.html?f=$1
RewriteRule ^ptopic([0-9]*).* viewtopic.html?t=$1
What do you think?
there something must changed by me?
I just edit 3 file (.htacces, includes/page header, includes/page tail).
When I test this code, all forum looked good. I get Url
www.m-benzforum.com/forum1.html but I had a problem when I click view forum and view topic (http 404 not found).
I think there a problem on .htacces, could you help to correct my .htacces?
caterham thank you very much
Best regards,
Abud