RewriteCond
2 posts
• Page 1 of 1
- Osgoodwosgood
- Posts: 1
- Joined: 12 Jun 2012, 11:44
RewriteCond
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: RewriteCond
Hello,
Please, try using the following:
You may also replace "R=301" with "P" to make it proxying instead of redirecting.
Regards
Andrew
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
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 35 guests