Wordpress“固定链接”页面出现404原因及解决方法

编辑配置文件:/etc/apache2/apache2.conf(非常靠后的位置),将里面的AllowOverride选项由None设置为All。

<Directory />
        Options FollowSymLinks
        AllowOverride All
        Require all denied
</Directory>

<Directory /usr/share>
        AllowOverride All
        Require all granted
</Directory>

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

 然后重启Apache2服务:sudo /etc/init.d/apache2 restart  就可以正常访问了。



posted on 2017-02-07 20:47  wzc0066  阅读(183)  评论(0编辑  收藏  举报