我的VPS服务器是centos7,apache 2.4和网站目录具有正确权限的配置文件看起来不错,虚拟主机对网站目录具有“要求全部授予”权限,我尝试使用默认WP .htaccess规则并且没有.htaccess规则,但无济于事。
我的配置文件(/etc/httpd/conf/httpd.conf)如下........
<VirtualHost *:80>
DocumentRoot "/var/www/html"
ServerName xxxxxxxxx.com
<Directory "/var/www/html">
allow from all
Options None
Require all granted
</Directory>
</VirtualHost>
我的.htaccess文件如下......
<IfModule mod_rewrite.so>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>