Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: ini file help Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
yvidan
Newbie
Newbie


Joined: 09 June 2010
Location: Israel
Online Status: Offline
Posts: 4
Posted: 17 June 2010 at 3:23am | IP Logged Quote yvidan

if for example I have 3 websites

www.site1.com

www.site2.com

www.site3.com

I need an Isapi rewrite that in case user writes in www.site1.com they get www.site1.com

if user types in www.site2.com they get www.site1.com/www.site2.com

if user types in www.site3.com they get to http://www.site1.com/www.site2.com

 

How would I do something like that

please help

Back to Top View yvidan's Profile Search for other posts by yvidan Visit yvidan's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10487
Posted: 17 June 2010 at 3:55am | IP Logged Quote Anton

Please try the following config:

[ISAPI_Rewrite]
RewriteCond Host: www\.site2\.com
RewriteRule .* http\://www.site1.com/www.site2.com [I,P]

RewriteCond Host: www\.site3\.com
RewriteRule .* http\://www.site1.com/www.site3.com [I,P]

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

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