欢迎联系交换友链

apache WordPress伪静态 .htaccess出现403 Forbidden Error

软件及网络 shuodatong 1093℃ 0评论

问题:

wordpress在做文章伪静态时出现 403错误

You don’t have permission to access /balabalabla on this server.

定位:

找到apahce日志 /var/log/httpd/error_log

Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:

解决方案:

在.htaccess文件的开始添加  Options +FollowSymLinks

添加后的文件
Options +FollowSymLinks
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L] # END WordPress

问题解决

转载请注明:apache WordPress伪静态 .htaccess出现403 Forbidden Error - https://shuodatong.com/wordpress-htaccess-403/

喜欢 (2)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址