I had created a basic rewrite map rule with mapping entry as original values = /customer/aboutus.svc?customer=1 , new value = /172.255.34.166/_data/customer/aboutus.svc?customer=1. I added new rule with rewrite map and selected the previous map. But when
i put the url in browser, it shows resource cannot be found.
I want this redirection to happen for specific url paramter to specific urls of target machine as show above. Kindly tell me what I should do?
Joseph_Emers...
3 Posts
perform rewrite/redirect for a basic requirement
Apr 10, 2012 06:44 AM|LINK
On my IIS7.5, when I get a request like http://localhost:8081/customer/aboutus.svc?customer=1
I would like to get the data from
http://172.255.34.166/_data/customer/aboutus.svc?customer=1
I had created a basic rewrite map rule with mapping entry as original values = /customer/aboutus.svc?customer=1 , new value = /172.255.34.166/_data/customer/aboutus.svc?customer=1. I added new rule with rewrite map and selected the previous map. But when i put the url in browser, it shows resource cannot be found.
I want this redirection to happen for specific url paramter to specific urls of target machine as show above. Kindly tell me what I should do?
Lloydz
2335 Posts
Microsoft
Re: perform rewrite/redirect for a basic requirement
Apr 13, 2012 06:16 AM|LINK
Hi,
How does your rule look like? I suggest you turn on failed request tracing which will show more clues on this issue:
Using Failed Request Tracing to Trace Rewrite Rules
http://learn.iis.net/page.aspx/467/using-failed-request-tracing-to-trace-rewrite-rules/
Thanks.