Skip to main content
Home / Code Snippets / HTAccess / Different Directory Index Page

Different Directory Index Page

Normally index.html or index.php is the default page a server serves up when visiting a directory without specifying a file name. You can change this with .htaccess:

DirectoryIndex index2.html
icon-link icon-logo-star icon-search icon-star