Can I hide the default.aspx from URL?
I seem to be getting different behavior when running my site on the Visual
Studio Development Server and running it on IIS.
When I request http://example.com
The development server seems to enforce showing
http://example.com/default.aspx in the URL, whereas IIS will allow
http://example.com.
I'm presently using an HttpModule to perform some SEO optimizations
(lowercase URLs, simplifying requests that contain queries, removing the
.aspx extension, etc).
I'd like to force a request to http://example.com/default.aspx to either
404 or redirect to http://example.com. Is there a typical/standard way to
do this, and will it behave the same when ran locally and when ran on IIS?
No comments:
Post a Comment