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: subdomain rw Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
alixxx83
Newbie
Newbie


Joined: 25 December 2006
Location: Turkey
Online Status: Offline
Posts: 18
Posted: 10 June 2011 at 4:30pm | IP Logged Quote alixxx83

hello,

i have many subdomains like:

http://a.site.com, http://b.site.com

and my asp page is in folder in my main web site like : www.site.com/page.asp

i want that when user click a.site.com rule must call this adress www.site.com/page.asp?wr=a 

and when user click b.site.com rule must call this

www.site.com/page.asp?wr=b

i want you to send me right rw rule for this.

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


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

The rules must be:

[ISAPI_Rewrite]
RewriteCond Host: (?!www\.)([^.]+)\.site\.com
RewriteRule /? http\://www.site.com/page.asp\?wr=$1 [I,P]

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


Joined: 25 December 2006
Location: Turkey
Online Status: Offline
Posts: 18
Posted: 22 June 2011 at 7:09pm | IP Logged Quote alixxx83

thanks Anton,

but i still have problem.

when i try this code, i get not found 404 error but when i try this

RewriteCond Host: (?!www\.)([^.]+)\.site\.com
RewriteRule /? http\://www.site.com/page.asp\?wr=$1 [I,RP]

work! but url is shown on ie url bar like this : http://www.site.com/page.asp/?wr=a

where is the problem ? :(

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


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 24 June 2011 at 7:07am | IP Logged Quote Anton

Please specify whether you are using Full or Lite version of ISAPI_Rewrite.
And please try the following test rule to figure out if proxy is working for you:

[ISAPI_Rewrite]
RewriteCond Host: (?!www\.)([^.]+)\.site\.com
RewriteRule /test http\://www.google.com [I,P]

Request www.site.com/test and if you get Google page, proxy is OK, if not, we'll think of possible problems with proxy you may encounter.

__________________
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