【发布时间】:2016-11-07 14:40:19
【问题描述】:
当我访问我的网站时,我看到如下内容:
/的索引
- wordpress/
.htaccess 文件:
# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
RewriteBase /
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
enter code here
当我访问 example.com 时,我需要做什么才能看到我的 wordpress 网站没有 / 索引和页面列表?
【问题讨论】:
-
.htcaccess文件?这不是 apache 所要寻找的。这是.htaccess。并且仅在允许通过allowoverrides执行 si 时