Created
February 3, 2014 09:43
-
-
Save apphp/8781056 to your computer and use it in GitHub Desktop.
Different Directory Index Page in .htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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: | |
| Source: http://www.apphp.com/index.php?snippet=htaccess-different-directory-index-page#null | |
| */ | |
| # Sample 1: | |
| DirectoryIndex index2.html | |
| # Sample 2: | |
| DirectoryIndex index2.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment