我的网站 http://mywebsite.com 如果我打这个URL它需要的index.php index.html作为默认页面。我怎样才能让home.php默认页面。 我曾经试过,但不工作通过将以下code里面的public_html的.htaccess文件
DirectoryIndex的home.php的index.html的index.php
解决方案
您只需要 home.php
在的DirectoryIndex
做它的工作原理。请记住,这是用在你的根项目的.htaccess文件:
的DirectoryIndex home.php
I have website http://mywebsite.com If I hit this URL it take index.php and index.html as default page. How can I make home.php as default page. I have tried this but not working by placing following code inside .htaccess file of public_html
DirectoryIndex home.php index.html index.php
解决方案
You just need home.php
in your DirectoryIndex
to make it works. Remember that this is using in .htaccess file of your root project:
DirectoryIndex home.php