时时商务社区
标题:
Apache无法自动跳转却显示目录的解决方法
[打印本页]
作者:
wx_pylelnL4
时间:
2018-2-14 05:34
Apache无法自动跳转却显示目录这是因为Apache服务器下conf/httpd.conf没有配置好,其默认是不跳转,直接显示目录
首先,我们需要禁止Apache直接显示目录。
方法在搜索Options Indexes FollowSymLinks,将其该为Options FollowSymLinks
其实,解决Apache无法自动跳转的问题,这是因为Apache本来只是一个http服务器,不会自动跳转到index.php页面。需要定位
[I]
这一项,将DirectoryIndex index.html改成DirectoryIndex index.html index.php即可。
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。
您可能感兴趣的文章:
Apache 虚拟目录和默认首页的设置
Apache Rewrite实现URL的301跳转和域名跳转
windows中apache 301页面跳转实现方法
让apache显示目录列表的配置方法
apache设置自动将http跳转到https的方法
禁止apache显示目录索引的常见方法(apache禁止列目录)
Apache mod_rewrite实现HTTP和HTTPS重定向跳转
Apache中使非伪静态url跳转到伪静态url的方法
Apache中解决动态地址跳转死循环的方法
Apache的Rewrite设置多域名301跳转到主域名的方法
欢迎光临 时时商务社区 (http://bbs.4435.cn/)
Powered by Discuz! X3.2