Ask Marketing Experts search engine marketing forum Forum Index Ask Marketing Experts search engine marketing forum
Free search engine marketing advice
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Properly Redirect Users

 
Post new topic   Reply to topic    Ask Marketing Experts search engine marketing forum Forum Index -> General Information
Author Message
admin
Site Admin


Joined: 11 Feb 2003
Posts: 310
Location: Los Angeles

PostPosted: Fri Sep 10, 2004 12:28 am    Post subject: How to Properly Redirect Users Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Ask Marketing Experts search engine marketing forum Forum Index -> General Information All times are GMT - 8 Hours
Page 1 of 1