不能自动加载index.php文件的二种修改方法
方法1,修改配置文件
例如,修改配置文件D:\lamp\apache\conf\httpd.conf加上DirectoryIndex index.hmtl index.php。
内容:
DirectoryIndex index.hmtl index.php
<IfModule !mpm_winnt_module>
方法2,修改D:\lamp\apache\conf\extra\ httpd-vhosts.conf文件,添加内容:
DirectoryIndex index.php index.html
如下图:
您可能感兴趣的文章:
不能自动加载index.php文件的二种修改方法
php设置index.php文件为只读的方法
php怎么改成html
php中$_SERVER[PATH_INFO]变量使用详解
php怎么打补丁
学习用php实现mvc简单框架
centos怎么部署php项目
php 伪静态 url重写简单示例
php使用include加密路径的方法介绍
php函数 spl_autoload_register的用法详解