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: Probably simple redirect
Author
Message |
makeyw
Newbie


Joined: 14 January 2008
Posts: 4
Posted: 28 June 2011 at 3:33am

Hi...

I'm trying to set up a redirect for our site to our new home page...the original content will be on the old url...so something like this:

if the user goes to "http://www.site1.com", "http://www.site1.com/" or "http://www.site1.com/default.*" then they will be redirected to http://ww1.site2.com....

If the user goes to "http://www.site1.com/anyotherpages" it will NOT redirect...

Hope that makes sense....

Any help greatly appreciated...




Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 29 June 2011 at 3:02am

Ok, the rules should be:

[ISAPI_Rewrite]

RewriteCond www\.site1\.com
RewriteRule (/?|/default.*) http\://ww1.site2.com$1 [I,RP]

__________________
Regards,
Anton
Back to Top
 
makeyw
Newbie


Joined: 14 January 2008
Posts: 4
Posted: 29 June 2011 at 3:51am

Hi Anton

thanks for this...

I eventually managed to find a response you gave to me on a similar question about 3 years ago!!

Thank you very much again!

Matt

 

Back to Top
 

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