Changing your default index page to something else (.htacess modification)

Updated 2 years ago 609 views

When you open up your website, it’s your "index.html" that loads right?

Ever thought it would be nice if somebody went to yoursite.com that they’d go to “under_construction.html” instead?

It can be done by editing your .htaccess file. Here’s what you have to do. Add this to your .htaccess file:

 

<table><tbody><tr><td><strong>CODE</strong></td></tr><tr><td><strong>DirectoryIndex under_construction.html</strong></td></tr></tbody></table>

This will treat "under_construction.html" as your default page instead of your "index.html" file.

Still need help?

If this article did not answer your question, our support team can help.

Contact support
Top