Forum Moderators: open
* sometimes by restructuring the site to reduce clicks,
* sometimes taking down clients
* sometimes renaming directories more logically
we have always used a custom 404, a meta refresh for important renames, and more recently 301 redirects.
we have never known any adverse effects and as far as we can see google removes these nonexistant pages from its index and adds the news ones.
however, might too many of these missing pages might have a detrimental effect on our ranking?
* an example:
we have just taken down two client sites with 12 pages each. googlebot spiders our site and finds 24 missing pages and lots of 404s.
can we be penalised for this?
thanks for feedback
You might want to consider returning 410-Gone status when you take down a page for which you can provide no logical replacement or alternative. That's slightly "cleaner" and lets everyone know it's not a temporary error on the site - the page is, in fact, gone.
Where possible, I like to eliminate all 404's due to ongoing site maintenance leaving only 404's due to true site errors. This preserves the 404 log entries' usefulness as a true error indicator. 301, 302, and 410 status codes are helpful in this respect.
Jim
that sounds even better. i've just had search for that but can not find how i can get the server to return the correct code?
obviously i could set it up in my .htaccess
ErrorDocument 410 /410.html
(with a bit of text on the 410.html explaining that the page no longer exists. Please go to the home page)
but how does the server know which is which?
thanks for help!
That depends on how you want to set it up. If you want to declare a resource (page or file) gone, you can use
RewwriteRule ^SomeRemovedPage\.html$ - [G]
This approach can get unwieldy if a large number of resources are removed from the site. An alternative is to detect all missing files and return a 410 for them, but I don't recommend it. This technique again loses the distinction between "gone, and we know it's gone" and "missing because of a problem on our site."
However, to illustrate, you could use:
RewriteCond %{REQUEST_FILENAME} !-U
RewriteRule ^spring\_specials/[^\.]\.html$ - [G]
Perhaps a mixture of the two methods above would be workable for you. However, I recommend designing your approach with maintenance in mind; Usually, you can remove the removed-resource 410 redirects after 6-12 months when all the important search engines have recognized them, so it's a good idea to make that easy to do.
Tutorial & links to more info: Introduction to mod_rewrite [webmasterworld.com]
HTH,
Jim
Wherever possible, you should ask other sites which link to your old domain to update their links. Other than that, leave the redirects in place long enough for the majority of your customers to update their bookmarks and for the other sites to update their links to you. When to pull the plug on the old domain is up to you, but it's a good idea not to "orphan" important incoming links.
Jim