ogletree

msg:3396362 | 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.
|
Swanny007

msg:3396372 | 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.
|
kkobashi

msg:3396387 | 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.
|
kkobashi

msg:3396513 | 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!
|
|