Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Redirect from One Subdomain to Another Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
dennisg
Groupie
Groupie


Joined: 14 May 2009
Online Status: Offline
Posts: 66
Posted: 12 July 2010 at 11:50pm | IP Logged Quote dennisg

Hi there.  I have - what I THINK is a very easy task - but it is seemingly becoming a bit more difficult that I thought.

I just need to force a sub domain (call it http://subdom.website.com) to go to (http://NEWsubdom.website.com).

But, the subdom url may have a page and querystring on it.  For example:  http://subdom.website.com/index.htm?id=23

The end result would be the new url in the URL bar with the following URL:  http://NEWsubdom.website.com/index.htm?id=23

Can anyone help?

Thanks in advance!!

Dennis


Back to Top View dennisg's Profile Search for other posts by dennisg
 
dennisg
Groupie
Groupie


Joined: 14 May 2009
Online Status: Offline
Posts: 66
Posted: 12 July 2010 at 11:52pm | IP Logged Quote dennisg

sorry everyone.  This REALLY belongs in 3.x.  I cannot seem to delete it or move it though.  Thanks for the help!

Dennis

Back to Top View dennisg's Profile Search for other posts by dennisg
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 13 July 2010 at 3:11am | IP Logged Quote Anton

Here's the config for v3:

RewriteBase /
RewriteCond %{HTTP_HOST} ^subdom\.website\.com$ [NC]
RewriteRule .* http://NEWsubdom.website.com%{REQUEST_URI} [R=301,L]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
dennisg
Groupie
Groupie


Joined: 14 May 2009
Online Status: Offline
Posts: 66
Posted: 13 July 2010 at 8:03am | IP Logged Quote dennisg

Great, it worked.  Thanks Anton!

Dennis

Back to Top View dennisg's Profile Search for other posts by dennisg
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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