Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Giving index.html priority over index.php

I have a wordpress site. Now the index page is index.php

Problem is that I don't want the server to use the index.php as the default one, but instead the index.html.

the index.html is just a temp page (under construction) until the wordpress site is ready.

currently the domain gives precedence to index.php - How do i give it to index.html?

NOTE: I do not have an htaccess file in the root.... I believe you specify it in there?

like image 903
David Van Staden Avatar asked Oct 29 '25 05:10

David Van Staden


2 Answers

It depends on your server configuration for now, some .htaccess file you may not have access too. You can define/overrule this in your own htaccess using, for example :

DirectoryIndex index.html index.php

the priority depends on the order you set the filenames in that line

like image 137
Laurent S. Avatar answered Oct 31 '25 07:10

Laurent S.


make an .htaccess file with "DirectoryIndex index.html" (no qoutes) in it.

like image 33
Al. Avatar answered Oct 31 '25 08:10

Al.