Creating IIS Rewrite Rules

Posted by Tom Bell on Server Fault See other posts from Server Fault or by Tom Bell
Published on 2010-09-26T12:37:27Z Indexed on 2010/12/25 13:55 UTC
Read the original article Hit count: 294

Filed under:
|

I'm having a hard time converting old .htaccess rewrite rules to new IIS ones so I was wondering if anyone could point me in the right direction. Below are some example URLs I would like rewriting.

http://example.org.uk/about/

Rewrites to

http://example.org.uk/about/about.html

-----------

http://example.org.uk/blog/events/

Rewrites to

http://example.org.uk/blog/events.html

-----------

http://example.org.uk/blog/2010/11/foo-bar

Rewrites to

http://example.org.uk/blog/2010/11/foo-bar.html

The directories and file names are generic and could be anything. Any help would be greatly appreciated.

© Server Fault or respective owner

Related posts about iis7

Related posts about url-rewriting