In a hosted IIS7 environment, I am looking for the simplest way to use extension-less file names. Simply I have the following pages:
index.html(or.aspx) –>example.comgallery.html–>example.com/galleryvideos.html–>example.com/videos- etc…
I only have a handful of pages, I have no dynamic code, nothing special. All the examples I have found or methods I use in other sites I’ve developed revolve around dynamic content, pages, etc. I am simply looking for the simplest solution, ideally not requiring any sort of URL rewrite module installed. Preferably, I could keep the .html extension instead of converting the site to a ASP.NET project, but that is an option.
I ended up using the following sites:
http://blogs.msdn.com/b/carlosag/archive/2008/09/02/iis7urlrewriteseo.aspx
and
http://forums.iis.net/t/1162450.aspx
or basically the following code in my web.config file using the IIS7 URL Rewrite Module that most hosted sites now offer (in this case I am using GoDaddy):