I have created a Zurb Foundation html/css/js project as flat files using Sublime 2 as my text editor. I have setup local git and github for windows that I use to deploy to Azure websites. My html nav is below in a fiddle. What i want to do is create friendly url routing to remove the .html from the page name. Since the site only has 8 pages, I would like to do manually create/update the web.config file without having to use visual studio.
http://jsfiddle.net/setbon/smvdV/
Below is my web.config code which is in the root directory and is set-up to redirect the www. to the canonical domain without www, what rule do I need to add please so that the .html becomes an friendly url ?
Once more..I do not want to use have to use asp.net routing framework - it's just 8 pages so ... manually have the rule coded seems more efficient.
<?xml version="1.0"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Canonical Hostname" stopProcessing="false">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" />
</conditions>
<action type="Redirect" url="http://{C:2}{REQUEST_URI}" redirectType="Permanent" />
</rule>
<rule name="Convert to lower case" stopProcessing="true">
<match url=".*[A-Z].*" ignoreCase="false" />
<action type="Redirect" url="{ToLower:{R:0}}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>