RewriteCond

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 12 Jun 2012, 11:44

RewriteCond

12 Jun 2012, 11:52

Hello

I have a client with an external URL (www.xxxxx.com/membership) that needs to point to a landing page on my iis server. Client has pointed the url to our web server IP address - 217.206.194.92.

I have inserted the following at the top of the helicon config file..

RewriteCond %{HTTP:Host} ^www.xxxxx.com/membership$
RewriteRule ^/$ http://xxxxxxxxxx/FTRegPage-site/Landing.aspx?id=AN.1 [NC,L,R=302]

Redirection does not take place however... I am always taken to the default website page.

I thought what I was doing was possible. Please advise.

Thanks

Andrew

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: RewriteCond

13 Jun 2012, 06:30

Hello,

Please, try using the following:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP:Host} ^www\.xxxxx\.com$
RewriteRule ^membership$ http://xxxxxxxxxx/FTRegPage-site/Landing.aspx?id=AN.1 [NC,L,R=302]


You may also replace "R=301" with "P" to make it proxying instead of redirecting.

Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 35 guests