Home > Backend Development > PHP Tutorial > wordpress查看站点时显示目录

wordpress查看站点时显示目录

WBOY
Release: 2016-06-23 14:11:26
Original
1287 people have browsed it

配置好wordpress之后,使用管理员登录是正确的,但是选择“查看站点”时总是显示目录而不是以网页的形式显示,怎么解决???

按照 http://blog.csdn.net/i1369230032/article/details/8660405上面的方法还是不行啊,求高手帮助。


回复讨论(解决方案)

把httpd.conf文件中的

    DirectoryIndex index.html

修改为

    DirectoryIndex index.html  index.php

试试在根目录中的 ".htaccess"加入 
DirectoryIndex index.php

Options -Indexes

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template