Posted By

apphp-snippets on 02/05/14


Tagged

page index htaccess apphp durectory


Versions (?)

Different Directory Index Page in .htaccess


 / Published in: PHP
 

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

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:

  1. # Sample 1:
  2. DirectoryIndex index2.html
  3.  
  4. # Sample 2:
  5. DirectoryIndex index2.php

Report this snippet  

You need to login to post a comment.