This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect Domain Alias Name
Author
Message |
smower
Newbie


Joined: 15 January 2010
Location: United States
Posts: 9
Posted: 27 July 2010 at 10:39pm

Hello,

We have found that we have an Alias domain name that is getting indexed by Google. 

I am trying to get the alias domain name to redirect to the new current domain but it doesn't seem to be working.  This is the code I am trying that is not working:

#REDIRECT FOR ALIAS SHAWNSGAMES.COM
Rewritecond %{http_host} ^www.shawnsgames.com [nc]
Rewriterule ^(.*)$ http://www.competitiveedgeproducts.com/$1 [r=301,nc]

Does anyone know what code I need to get this to work?

Thanks in Advance!

Shawn

Back to Top Visit smower's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 July 2010 at 3:23am

Please clarify what version of ISAPI_Rewrite you are using.
You write in v2 forum, though the syntax is for v3.

__________________
Regards,
Anton
Back to Top
 
smower
Newbie


Joined: 15 January 2010
Location: United States
Posts: 9
Posted: 28 July 2010 at 1:03pm

I elieve we are on v2. Thanks!
Back to Top Visit smower's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 July 2010 at 2:49am

The config for v2 will look as follows:

RewriteCond Host: www\.shawnsgames\.com
RewriteRule (.*) http\://www.competitiveedgeproducts.com$1 [RP]

__________________
Regards,
Anton
Back to Top
 
smower
Newbie


Joined: 15 January 2010
Location: United States
Posts: 9
Posted: 30 July 2010 at 10:35am

Thanks Anton,

I tried it but it does not seem to be working. Any suggestion? Could
you also show the code for v3 in case I am mistaken on the version.

Thanks,
Back to Top Visit smower's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 02 August 2010 at 3:06am

Sure. The code for v3 is:

RewriteBase
RewriteCond %{HTTP_HOST} ^www\.shawnsgames\.com$ [NC]
RewriteRule (.*) http\://www.competitiveedgeproducts.com$1 [R=301,L]

__________________
Regards,
Anton
Back to Top
 
smower
Newbie


Joined: 15 January 2010
Location: United States
Posts: 9
Posted: 02 August 2010 at 6:16pm

Thanks Anton!

That worked!

Back to Top Visit smower's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum