WordPress固定链接设置问题

WordPress设置了固定链接经常会出现如下的报错:

The requested URL /1.html was not found on this server.

解决方法

找到apache配置文件httpd.conf,将配置文件中的AllowOverride none改为
AllowOverride All即可;

注意

以上配置完成还未结束。还得在网站根目录添加.htaccess文件,不然依旧会报错,添加内容如下:

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

该文章转载来源:小站长转载文章地址:http://iknowyouask.com/957.html

posted on 2019-07-03 09:46  爱上分享的猪  阅读(584)  评论(0编辑  收藏  举报

导航