跳至正文

WordPress改为固定链接后不能访问的解决方法

Apache服务器为例,打开httpd.config文件。

1、确保以下这行是开启状态(即前面没有#号)

LoadModule rewrite_module modules/mod_rewrite.so

2、确保以下两处AllowOverride选项为All


Options FollowSymLinks
AllowOverride All



# … other directives…
AllowOverride All

修改完成后,需重启Apache才能生效。

service httpd restart
标签:

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注