Everything works fine and the file name is returned as http://www.mysite.com/folder/filename instead of
http://www.mysite.com/folder/filename.htm
However, I have many URLs to rewrite in the same way as above and I reached a limit of URLs over which IIS doesn’t allow me to add more URLs.
The question is: is there a way I can manage this with wildcards or programmatically, that is by adding a single and simple rule which allows me to remove all the
.htm extensions to all my URLs?
Member
143 Points
447 Posts
URL Rewriting - Remove all .htm extensions
Nov 16, 2011 02:47 PM|Claudio7810|LINK
Hi All,
I d like to remove all the .htm extensions off from my URLs and tried with IIS friendly rule which rewrites the URL using the following code:
Everything works fine and the file name is returned as http://www.mysite.com/folder/filename instead of http://www.mysite.com/folder/filename.htm
However, I have many URLs to rewrite in the same way as above and I reached a limit of URLs over which IIS doesn’t allow me to add more URLs.
The question is: is there a way I can manage this with wildcards or programmatically, that is by adding a single and simple rule which allows me to remove all the .htm extensions to all my URLs?
Thanks in advance
rewrite
Member
143 Points
447 Posts
Re: URL Rewriting - Remove all .htm extensions
Nov 19, 2011 04:18 AM|Claudio7810|LINK
I got it
this is the sample code:
rewrite