homepage Welcome to WebmasterWorld Guest from 174.129.76.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
301 or 404? Don't they do the same thing
Ride45

10+ Year Member



 
Msg#: 3084692 posted 6:26 pm on Sep 15, 2006 (gmt 0)

I just removed thousands of duplicate content pages.
I maintain a list of these pages in an .htaccess file, and have given them all a 301 redirect to my homepage.

I was considering putting a 404 on all of them instead, which would send the user to a custom 404 page.

However, I have been reading that the 301 tells Google that the page doesn't exist, remove the link from the index and permanently redirect the user.

Wouldn't a 404 tell Google the same thing? That the page doesn't exist anymore? The user would hit a custom page that lets them know this.

Which one is best for SEO purposes? The 404 seems more user friendly, while the 301 seems more SE friendly.

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3084692 posted 6:50 pm on Sep 15, 2006 (gmt 0)

They are two different creatures. 404 says the URL was not found. 301 says the content on that URL has moved permanently to new URL. Both have their uses, depending on the situation.

Ride45

10+ Year Member



 
Msg#: 3084692 posted 2:50 am on Sep 16, 2006 (gmt 0)

Sounds like it wouldn't be a good idea to then do a couple hundred 301's to our home page in an htaccess file...

Do i reference all my pages that are 404 in an htaccess file with "ErrorDocument 404"?

If so, would a 404 reference in an htaccess file take precendent over the fact that the files still exist in the directory? (they are just not beeing linked to anywhere and therefore not used.

Thanks

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3084692 posted 7:30 pm on Sep 16, 2006 (gmt 0)

>> If so, would a 404 reference in an htaccess file take precendent over the fact that the files still exist in the directory? <<

There is a misunderstanding here.

If the file still exists then it will be served with a "200 OK" reponse and the content indexed (unless you put a meta robots noindex tag on the page).

If there is a 301 redirect for that URL declared in the .htaccess file then that file can not in fact be accessed. The redirect is served first, and the browser then requests the new URL that it was told to ask for.

The server can only give a 404 response if the requested file is NOT found on the server.

The ErrorDocument directive tells the server to show the content of the named file, instead of the standard "Error 404 - Page not Found" message that is built in to the system.

The format is:

ErrorDocument 404 /my.error.message.page.html

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved