Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Change Default Index Page


Code Snippet </> Info


Snippet Name: Change Default Index Page

Description: This rule tells the server to search for and serve a new-default-page as the default directory index file. This rule must exist in the htaccess file of the root directory for which you wish to replace the default index file (e.g., index.html) and show (new-default-page.html) instead.

Note: Simply rename the 'new-default-page.html' to a file name that you prefer.

Author:

Last Modified: 2015-12-13 07:14:20

Language: .htaccess

Highlight Mode: html

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying
Copied To Clipboard!

# serve alternate default index page DirectoryIndex new-default-page.html


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library