Forum Moderators: phranque
One of my sites that has been on the net for nearly 5 years is growing old and tired and I want to change its focus. Whats the best way to take down a site gracefully?
When users surf to my pages in the search indexes/bookmarks, what can I do in .htaccess to make them go to my home page and let the search engines/users know the other pages no longer exist?
I tried this but got an internal server error:
RewriteRule (.*) [site.com...] [R=410,L]
I want to maintain the existing website domain name. Basically I want Google/Yahoo/etc. to know that all my pages are dead and gone. However, for the pages that are dead, I don't want to lose that visit and send them to my home page.
Options +FollowSymLinks
RewriteEngine on
# Set the default handler
DirectoryIndex index.html
# Add the www if missing
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST}!^www\.
RewriteRule ^(.*)$ [%{HTTP_HOST}...] [R=301,L]
RewriteRule ^([a-zA-Z0-9-]+)/?$ [mysite.com...] [R=301,L,NC]
Thoughts appreciated!