How to Solve a 403 Error When Logging into WordPress

How to fix a 403 error when logging into WordPress takes you through your options when you receive a 403 error when logging into WordPress.

A 403 message usually means the server correctly receives your request for a page, but based on the server settings and restrictions, decides to take no action on your request – effectively denying you access to that page.

What’s the problem?

  1. You try to log into WordPress with your username and password in the WordPress admin login page.
  2. You receive an error message informing you that “You are not authorized to view this page. (403 error)”

How to solve a 403 error when logging into WordPress

If your website is hosted through a Windows-operated server, the problem could be an error with the Directory Indexes. You should enable your Index.php as follows:

Step 1

Log into your WordPress cPanel

Step 2

Click on the web options button

Step 3

Navigate to the Directory Indexes section

Step 4

Add index.php to the Directory Indexes

Step 5

Log out and log back in again. The error message should have disappeared and you should be able to see everything as normal.
These steps should normally fix a 403 error when logging into WordPress. However, if you have tried other steps that worked for you, we would love to hear about them in the comments section below.