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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Probably simple redirect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
makeyw
Newbie
Newbie


Joined: 14 January 2008
Online Status: Offline
Posts: 4
Posted: 28 June 2011 at 3:33am | IP Logged Quote makeyw

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 View makeyw's Profile Search for other posts by makeyw
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 29 June 2011 at 3:02am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
makeyw
Newbie
Newbie


Joined: 14 January 2008
Online Status: Offline
Posts: 4
Posted: 29 June 2011 at 3:51am | IP Logged Quote makeyw

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 View makeyw's Profile Search for other posts by makeyw
 

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