Hi,
I haven’t had to get involved with htaccess previously so bear with me.
I’m trying to get all wrongly addressed pages to revert to the ‘index’ page.
The 404 error redirect works fine if the page requested is .htm or .html but not if it is addressed .php? All of the site’s pages are .php.
My htaccess file looks like this…
ErrorDocument 404
http://www.serversys.com/index.php
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^www.$
RewriteRule ^(.*)$
http://www.serversys.com/ [R=301,L]
AddHandler php5-script .php
AddHandler php4-script .php4
AddHandler php5-script .php5
Can anyone help please?
Jim