Hello All, One of my URLs has recently changed. I put a small text page under the old url which basically says: our site has moved here... with a link to the new site. The old URL has a non-zero pr which is probably being passed on some to the new site. The other approaches I can think of: 1) 301 redirect to the new url and 2) Meta-refresh tag to redirect to the new url What do you think of these? Thanks, James
HTTP redirect is the way to go. Don't use meta-refresh - it is disabled in many Windows installations for security reasons and it is not as standard as HTTP redirect. J.D.
So I don't re-invent the wheel or dig around for it, does anyone have a syntax to use in .htaccess? Need to redirect example.com to example.org Thanks again, James
Taken from Mod rewrite cheat sheet # Site has permanently moved to new domain # domain.com to domain2.com RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L] Code (markup):
There's no need to use mod-rewrite for this - too much overhead. Just stick Redirect into your VirtualHost section for the old domain name. J.D.