WordPress 403 Forbidden Error: How to Fix It (2026)

WordPress 403 Forbidden Error - WordPress error fix

A 403 Forbidden error means the server understood your request but refuses to allow it. On WordPress this is usually a broken .htaccess file, a security plugin or firewall, wrong file permissions, or a missing index file.

The Short Version

  • 403 means the server is blocking you on purpose. It is different from a 404, which means the page was not found.
  • First note where it happens: the whole site, only wp-admin, one page, or after submitting a form.
  • Test in this order: rename .htaccess, switch off security plugins, check permissions, check for index.php.
  • If none of these help, your host’s firewall may be blocking you. Send them the exact URL and time.

Why This Error Happens

  • A damaged or wrong rule in .htaccess.
  • A security plugin or firewall that blocks your IP or the request.
  • Wrong file or folder permissions.
  • No index.php or index.html in a folder where directory listing is off.
  • A host firewall rule, such as ModSecurity, that flags the request.

Step 1: Rename .htaccess

Open File Manager or FTP and rename .htaccess to .htaccess-old. Reload the page. If the error is gone, the old file was the problem. Go to Settings, then Permalinks, and click Save Changes. WordPress creates a fresh file. The standard WordPress block looks like this:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Step 2: Test Your Plugins

Rename the plugins folder inside wp-content to plugins-off and reload. Security and firewall plugins are the most likely cause. If it works, rename the folder back and follow our plugin conflict guide to find the plugin.

Step 3: Check Permissions

Folders should normally be 755 and files 644. Do not use 777. Your hosting File Manager lets you change this.

Step 4: Check for an Index File

Make sure index.php exists in your site’s main folder. If it is missing, upload a fresh copy from a new WordPress download.

Step 5: Ask Your Host

If the error remains, the block may be on the server. Send your host the full URL, the time of the error, and your IP address. They can check the firewall and server logs. If your site shows a 500 error instead, see our 500 error guide.

Verified Facts and Sources

Checked in December 2026. MDN describes 403 Forbidden as a response where the server understands the request but refuses to authorize it. The WordPress developer documentation recommends 755 (or 750) for directories and 644 (or 640) for files.

Frequently Asked Questions

What is the difference between 403 and 404?

A 403 means the page exists or the request is understood, but access is refused. A 404 means the server could not find the page.

Can a plugin cause a 403 error?

Yes. Security and firewall plugins can block requests or IP addresses. Rename the plugins folder to test.

Why do I only get 403 in wp-admin?

A firewall rule or security plugin may protect the admin area, or your IP may be blocked. Test your plugins and ask your host.

Is it safe to delete .htaccess?

Rename it instead of deleting it, so you can restore it. WordPress can create a new one when you save your permalinks.

Updated December 3, 2026.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *