This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: rewrite problem
Author
Message |
Fatweb
Newbie


Joined: 16 March 2010
Posts: 7
Posted: 07 September 2011 at 6:47am

Hello,
I have two domain accessing the same page. I need to do like this

http://site1.com/resi/proppage.asp?code=111
to go to
resi/proppagesite1.asp?code=111


http://site2.com/resi/proppage.asp?code=111
to go to
resi/proppagesite2.asp?code=111

how can I achieve this?
thanks,
FM
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 09 September 2011 at 8:03am

Hello FM,

That's called proxying. Try using the following:

Code:
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^(?:www\.)?([^.]+)\.com$
RewriteRule ^resi/([^.]+)\.asp$ resi/$1%1.asp? [QSA,P,L]


Regards
Andrew
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version