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

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

Best way to take down my website

Msg#: 3396321 posted 10:39 pm on Jul 16, 2007 (gmt 0)

No, not in the malicious way.

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]



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

Msg#: 3396321 posted 11:37 pm on Jul 16, 2007 (gmt 0)

You want to set it up so that all the pages are 301ed to the root not root/index.htm

I'm not sure the code you need for that.


WebmasterWorld Senior Member 5+ Year Member

Msg#: 3396321 posted 11:47 pm on Jul 16, 2007 (gmt 0)

Are you going to redirect the site to a new URL or just the old site's home page? I had a site I took down. I just 301'd it to another site I run. The topic was a bit different but I did it that way so I didn't totally lose the visitors.


Msg#: 3396321 posted 12:01 am on Jul 17, 2007 (gmt 0)

Hey guys, thanks for the replies.

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.


Msg#: 3396321 posted 2:21 am on Jul 17, 2007 (gmt 0)

I'm thinking this should work. Anything typed in gets redirected 301 to index.html:

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!

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
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