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) --> domain.com
gallery.html --> domain.com/gallery
videos.html --> domain.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.
Thanks.
question from:
https://stackoverflow.com/questions/4481632/remove-html-or-aspx-extension 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…