Last post Feb 26, 2015 10:17 AM by Shawn - MSFT
Feb 25, 2015 02:36 PM|ashwinkotwaliwale|LINK
i have a WCF service as follows:
and i want to enable clean url ideally so that api.mysite.com will internally route to api.mysite.com/dir/service.svc so when a client makes a call such as api.mysite.com/method?param=x then internally it should be like api.mysite.com/dir/service.svc/method?param=x
id this possible and where can this be done?
thanks in advance.
Feb 26, 2015 10:17 AM|Shawn - MSFT|LINK
For this situation, you can use the following rule in the web config file
<rule name="ServiceRewrite" stopProcessing="true">
<match url="^$" />
<action type="Rewrite" url="" />
For more information, you could refer to: