 |
Ask Marketing Experts search engine marketing forum Free search engine marketing advice
|
| Author |
Message |
admin Site Admin
Joined: 11 Feb 2003 Posts: 311 Location: Los Angeles
|
Posted: Fri Sep 10, 2004 12:28 am Post subject: How to Properly Redirect Users |
|
|
The only way you can redirect users (and search engine spiders) is with a 301 permanently moved redirect.
You may get new filenames during a website redesign, or pickup multiple domain names to protect your brand.
By using the wrong redirect, Google and others can construe this as spamming because of duplicate content issues. If you manage multiple domain names for one website, always create a 301 redirect on the domains that will not be promoted in the search engines.
To create one in Apache/Linux add this line to the .htaccess file:
[code:1:a8f95259f7]Redirect 301 / http://www.yourdomain.com/ [/code:1:a8f95259f7]
Another method is to employ the mod_rewrite technique
also added in the .htaccess file:
[code:1:a8f95259f7]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^oldsite.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.oldsite.com$
RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]
[/code:1:a8f95259f7] |
|
| Back to top |
|
 |
|
|