我在Azure VM中的Windows Server 2012 R2上运行WordPress。在我的某个网站中,主题选项面板未更新。当我检查控制台时,我看到这个错误:/wp-admin/admin-ajax.php 403(Forbidden)。
根文件夹中的.htaccess文件如下所示:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# Forbidding PHP files execution
<FilesMatch “\.(php|php\.)$”>
Order Allow,Deny
Deny from all
</FilesMatch>
# END WordPress
#GZIP Compression
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
我尝试使用以下内容将另一个.htaccess文件添加到wp-admin文件夹中:
<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>
但这不起作用。
我对文件的权限设置如下: https://www.customfitonline.com/news/2013/6/20/solve-wordpress-on-windows-server-problems/
关于如何使这个工作的任何想法???