Return to Snippet

Revision: 65896
at February 5, 2014 20:04 by apphp-snippets


Initial Code
# Sample 1: 
DirectoryIndex index2.html
 
# Sample 2: 
DirectoryIndex index2.php

Initial URL
http://www.apphp.com/index.php?snippet=htaccess-different-directory-index-page

Initial Description
We know that normally index.html or index.php is the default page for many servers, when visitor types a directory without specifying a file name. You can change this rule with .htaccess:

Initial Title
Different Directory Index Page in .htaccess

Initial Tags
page, htaccess

Initial Language
PHP