简体   繁体   English

WordPress Softaculous安装显示Index Of /目录而不是站点

[英]WordPress Softaculous installing shows Index Of/ directory instead of site

After installing WordPress through softaculous (from my cpanel) and going to the directory I just see an indexed list instead of the theme. 通过softaculous(从我的cpanel)安装WordPress并转到目录后,我只看到一个索引列表而不是主题。

reidsherman.com/wp reidsherman.com/wp

Similar questions to this hint at a missing index.php, but as you can see there is an index file. 类似的问题提示缺少index.php,但是您可以看到有一个索引文件。 Thanks. 谢谢。

This is maybe a misconfiguration of your webserver. 这可能是您的网络服务器的配置错误。 If you are using an Apache try this: 如果您使用的是Apache,请尝试以下操作:

DirectoryIndex index.php 

in httpd.conf 在httpd.conf中

It turns out that my .htaccess file had an alternate default index page, index.html. 事实证明,我的.htaccess文件具有备用默认索引页index.html。 The fix was to simply comment out that line. 解决方法是简单地注释掉该行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM