LexiConn Knowledgebase

Knowledgebase Home | Favorites Knowledgebase Home | Favorites
Search the Knowledgebase Browse by Category
Permanent Redirect for Pointed Domains
Article Details

Last Updated
21st of June, 2010

User Opinions (9 votes)
88% thumbs up 11% thumbs down

How would you rate this answer?
Helpful
Not helpful

If you are changing domains and your previous domain has well-established page rankings, or you are pointing the .net or .org versions of your primary domain name to your site and would like to avoid page-rank bleed to your pointed domains, you can set up your previous domain as a pointed domain in your new account and put a 301 redirect in place to redirect all traffic from your previous domain to your new domain. A 301 redirect (a permanent redirect) notifies search engines that your site has been permanently moved then forwards them to the new location. In the case of a mirrored .net or .org domain, a 301 redirect prevents page rank from being split between each domain assingning 'credit' for all incoming traffic to your primary domain name.

Setting this up requires creating (or editing) the .htaccess file in your /www directory. Here is an example of a mod_rewrite to redirect all traffic from yourdomain.net to yourdomain.com:

<IFModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^yourdomain\.net
RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
</IfModule>

Now the carrot(^) before yourdomain in the RewriteCond indicates that the domain must begin with "yourdomain"; therefore, www.yourdomain.net will not be redirected. To include www.yourdomain.net we can simply remove the carrot:

<IFModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} yourdomain\.net
RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
</IfModule>

Here is an example of a mod_rewrite that will redirect all request for the domain without the "www" to a URL with the www:

<IFModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} ^yourdomain\.com
RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
</IfModule>


If you need to set up a basic 301 redirect from one page to a new version of that page on your site you can find more information here:


or email us a request at support@lexiconn.com and we can set it up for you.


Related Articles
Attachments
No attachments were found.

Powered by Interspire Knowledge Manager Knowledgebase Software