My web site was operating effectively final summer time. However right this moment after I tried to make updates within the wp-admin part, I bought numerous 403 errors on all PHP recordsdata: load-styles, load-scripts, edit.php, media-new.php
, and so forth… The fascinating factor is that the front-end of my web site has no issues.
Screenshot:
- I’ve learn a couple of articles suggesting I disable plugins. I attempted it, but it surely doesn’t repair something.
- Then I attempted deleting my
.htaccess
file, and this does repair the wp-admin part, but it surely breaks the front-end, and now I get 403 errors on the homepage! It is like I can solely get one or the opposite. After about 5 minutes, WordPress mechanically creates a brand new.htaccess
file, and we’re again to sq. one.
What permissions and settings ought to I set on .htaccess
so I can run each my front-end and wp-admin sections with out 403 Forbidden errors? That is what it seems to be like now:
<FilesMatch ".(py|exe|php)$">
Order enable,deny
Deny from all
</FilesMatch>
<FilesMatch "^(about.php|radio.php|index.php|content.php|lock360.php|admin.php|wp-login.php)$">
Order enable,deny
Enable from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>