Category: WordPress

WordPress: wp-admin returns 403 despite the correct role

Read this guide in Polish

The administrator cannot open the panel, but the public website remains available.

How to identify the source of the problem

Check WAF logs, .htaccess rules and IP security for wp-admin directory.

Check the bug log, recent plugin changes and the environment version on the site test copy.

Repair steps

Restore access to the authorized address by the controlled rule instead of shutting down all security.

How to Test Solution

The panel works for the administrator, and the anonymous user does not gain permission.

Security and restrictions

Make a backup before you migrate or update PHP. Do not enter access data in untrusted forms.