WordPress 403 Forbidden

WordPress 403 Forbidden

403 forbidden error in wordpress

What is the 403 Forbidden Error?

The 403 Forbidden error means that your web server understands the request that the client (i.e. your browser) is making, but the server will not fulfill it. In more human-friendly terms, it basically means that your server knows exactly what you want to do, it just won’t let you do it because you don’t have the proper permissions for some reason. It’s kind of like you’re trying to get into a private event, but your name got accidentally removed from the guestlist for some reason.

What Causes the 403 Forbidden Error on WordPress

The three most likely causes of the 403 Forbidden Error on WordPress are:

  • Corrupt .htaccess file
  • Incorrect file permissions
  • Mod Security

How to Fix 403 Forbidden Error on WordPress

  • Fix .htaccess corruption
  1. Connect to your server via FTP (login to control panel)
  2. Find the .htaccess file in your root folder
  3. Download a copy of the file to your computer (it’s always a good idea to have a backup just in case)
  4. Delete the .htaccess file from your server after you have a safe backup copy on your local computer
  5. fix 403 forbidden error wordpress htaccess
  6. Now, you should be able to access your WordPress site if your .htaccess file was the issue.
  7. Go to Settings → Permalinks in your WordPress dashboard
  8. Click Save Changes at the bottom of the page (you do not need to make any changes – just click the button)
  9. fix 403 forbidden error wordpress htaccess from wordpress dashboard

Thats all… Now it will generate your new .htaccess file.

  • Fix incorrect file permissions
  1. Connect to your server via FTP (use filezilla or any FTP manager)
  2. Goto file manager, find out the wordpress files and directories
  3. According to the WordPress Codex you have to change the  file and directory permissions.
    • Files – 644 or 640
    • Directories – 755 or 750
    • One exception is that your wp-config.php file should be 440 or 400.
  4.  To set these permissions, right-click on the folder that contains your WordPress site. Then, choose File Attributes:file manager using file zilla
  5. Enter 755 or 750 in Numeric value box. Then, choose Recurse into subdirectories and Apply to directories only:selecting file permission for wordpress
  6. Once you’ve applied the correct permissions for directories, you’ll repeat the process for files. Only this time:
    • Enter 644 or 640 in the Numeric value box
    • Choose Recurse into subdirectories
    • Choose Apply to files only

      apply permission only for files

  7. To finish the process, you just need to manually adjust the permissions for your wp-config.php file to make them 440 or 400:

    change permission in wp config file

Thats it………..

  • Fix Mod Security

Still if you have the forbidden error with your WordPress website, the only final solution will be from your server admin. Contact your server admin and tell them to change or update the mod rule.

Finally Thats it…

Leave a Reply

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