Is there a way to show the DirectoryIndex file in the URL as default? For example, if the DirectoryIndex is index.html, when I typed in www.someurl.com, it would automatically display www.someurl.com/index.html
From stackoverflow
-
I don’t think that there’s an option to trigger Apache to do this automatically.
But if you know the index document, you could use mod_rewrite to redirect such requests:
RewriteEngine on RewriteRule ^/$ /index.html [L,R=301]
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.