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: subdomain rw
Author
Message |
alixxx83
Newbie


Joined: 25 December 2006
Location: Turkey
Posts: 18
Posted: 10 June 2011 at 4:30pm

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 Visit alixxx83's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 16 June 2011 at 3:51am

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
 
alixxx83
Newbie


Joined: 25 December 2006
Location: Turkey
Posts: 18
Posted: 22 June 2011 at 7:09pm

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 Visit alixxx83's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 24 June 2011 at 7:07am

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
 

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