Customize the URL for the REST services

Now that our WCF service is installed we want to delete. "Svc" when accessing REST.
So instead of typing a URL in this form

http://moss2007/_wcf/HelloWorld.svc/REST/<parametres>
we will use instead this URL
http://moss2007/_wcf/HelloWorld/REST/<parametres>

To do this we will use an additional module for IIS7 which is the IIS 7 URL Rewrite Module.

After installing the module, open the folder containing your WCF service using "IIS7 manager". You will find the new module available.
Click it and choose the option "Add Rule". Name the new rule "remove. Svc”.
Then edit the rule as represented in the screenshot below:

editRule.png (27 KB) Ahmed CHAABOUNI, 12/01/2009 02:49 AM

Also available in: HTML TXT