![]() |
301 redirect help
I have an old site that I want to redirect into another site.
I have this on my old site: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newsite.com/$1 [R=301,L] With this, whenever you visit a url from the old site, for example: www.oldsite.com/hello.html it redirects to www.newsite.com/hello.html How to I set it up to redirect www.oldsite.com/whatever.html to www.oldsite.com/ ? Thanks |
Options +FollowSymlinks
RewriteEngine on rewritecond %{http_host} ^domain.com [nc] rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] |
Thanks, but that's not cutting it.
I forgot to mention there are no urls on the server of the olddomain.com There used to be but not anymore and I need to 301 these all into my newdomain.com Do I need to specify in the redirect all the urls on the old domain if they are not there? Everything im trying is just redirecting olddomain.com/oldurl.html to newdomain.com/oldurl.html |
this works for me here
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] |
Quote:
I need it to redirect http://www.olddomain.com/whatever-url-someone-hits.html to http://www.newdomain.com/ |
ok you should put a 404 on the old domain that redirects everything to the root first :)
|
All times are GMT -7. The time now is 10:03 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123