.htaccess文件阻止wordpress站点

时间:2017-09-05 04:07:44

标签: php wordpress apache .htaccess mod-rewrite

尝试访问我的子域wordpress博客时出现以下错误:

`Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an 
ErrorDocument to handle the request.`

它似乎是由位于公共html文件夹中更高位置的htaccess文件引起的。但是我不确定在此访问文件中要更改什么来解决问题。 htaccess文件包含:

`<IfModule mod_rewrite.c>
 Options Indexes FollowSymLinks
 RewriteEngine On
 RewriteBase /
 RewriteCond %{HTTPS} off
 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 RewriteRule ^index\.html$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.html [L]
 </IfModule>`

0 个答案:

没有答案