Forum Moderators: phranque

Message Too Old, No Replies

404 error redirect

         

chensp18

1:21 pm on May 11, 2005 (gmt 0)



I redirect 404 error to my homepage using following codes in .htaccess:

ErrorDocument 404 /index.html

Is it a 301 redirect? Is it good for major search engine? Does anybody have a better solution to redirect 404 errors to homepage and have no impact with SE ranks?

Thank you!

JAB Creations

9:14 pm on May 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, if you set your frontpage as your 404 file, it is still your 404 file. The search engines will see the 404 http code (even though you served them your frontpage).

A 301 looks like this (in your .htaccess)...


Redirect permanent /lostfile.html [example.com...]

Repeat for each file you want to setup a 301 for. Setting up 301s are MUCH better then 404s THOUGH I'm not sure search engines add the redirected to their "to crawl" list.