Thread: .htaccess
View Single Post
Old 2007-11-10, 09:20 AM   #4
Maria
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Join Date: Aug 2006
Posts: 25
Hi, I was doing some searching myself a while ago and read this article on webmasterworld.com about the correct format for redirecting a 404 error.
One of the things I read was this :

<<An errorDocument directive specifies what file to serve when each particular error number occurs in the server. You must NOT include the http:// or point to another server, otherwise you will NOT get the correct http error code sent back (404 will be returned as 302 in fact).>>

Hope this helps.

In my case I have:
ErrorDocument 404 /404.html

Else your 404 will look like a redirect to Google and other searchengines
Maria is offline   Reply With Quote