问题:
wordpress在做文章伪静态时出现 403错误
You don’t have permission to access /balabalabla on this server.
定位:
找到apahce日志
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/