JohnS
02-28-2009, 08:18 PM
Hello. I notice that, when I visit a nonexistent page on my site, it returns the following:
Not Found
The requested URL /example.php was not found on this server.
Additionally, a 301 Moved Permanently error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at www.mysite.com Port 80
Should the 404.php document in my www directory be loading instead?
My htaccess file is:
RedirectMatch permanent ^(.*)\.htm(l?)$ $1.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
Thanks in advance.
John
Not Found
The requested URL /example.php was not found on this server.
Additionally, a 301 Moved Permanently error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.41 Server at www.mysite.com Port 80
Should the 404.php document in my www directory be loading instead?
My htaccess file is:
RedirectMatch permanent ^(.*)\.htm(l?)$ $1.php
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
Thanks in advance.
John