What is the absolute minimum content for rewriting url on web.config?

I am going to deploy the application in the near future on the IIS7 server and would like to use the URL rewrite settings for each application in web.config , but this is not ASP.NET, so I do not need anything extra.

What is the absolute minimum I need in my web.config to run my application and use URL rewriting?

+6
url-rewriting iis iis-7
source share
1 answer

After a lot of searches and tripping over various articles, I found this article in which you need to install the URL Rewrite module (not packaged with IIS7). After that, it's pretty simple.

 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule> <match url="start\.html" /> <action type="Rewrite" url="finish.html" /> </rule> </rules> </rewrite> </system.webServer> </configuration> 

I was very surprised that additional download was required - I thought that this function should be baked (testing on Win7x64). Well, at least it works.

+6
source share

All Articles