Forum Moderators: Robert Charlton & goodroi
[edited by: tedster at 4:14 am (utc) on Sep. 14, 2006]
[edit reason] use example.com [/edit]
Assuming you are on an Apache server, here's a thread with a Rewrite solution [webmasterworld.com] from jdMorgan that you can use in your .htaccess file:
# mod_rewrite setup
Options +FollowSymLinks
RewriteEngine on
#
# Redirect direct client /index.html requests to "/" (does not affect DirectoryIndex accesses)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html
RewriteRule ^index\.html$ http://example.com/ [R=301,L]
Is this also a possibility on IIS? I have a site where both http://www.example.com/default.aspx and http://www.example.com/ are listed.
The problem is that IIS adds the default.aspx automatically as the defaukt document, otherwise it does not know where the results from http://www.example.com/ are supposed to come from.
I cannot find any difference in the request header or content between the requests for both pages.