2013-04-24 76 views
2

我有一个WordPress的网站。现在,索引页的index.php给index.html优先index.php

问题是,我不希望服务器使用的index.php为默认的,而是在的index.html

index.html只是一个临时页面(正在建设中),直到WordPress的网站准备就绪。

当前域优先index.php - 我如何把它给index.html?

注:我做有一个htaccess文件在根....我相信你在那里指定它?

回答

3

这取决于你现在的服务器配置,有些.htaccess文件你可能没有访问过。您可以定义/使用自己的htaccess否决这一点,例如:

DirectoryIndex index.html index.php 

优先取决于你在该行

+0

谢谢,正是我寻找 – 2013-04-24 12:53:59

1

在其中创建一个带有“DirectoryIndex index.html”(no qoutes)的.htaccess文件。

+0

感谢您设置的文件名的顺序,欣赏 – 2013-04-24 12:54:37