Karachi, Pakistan
+92 347 2711283

TechnologyJanuary 10, 2018by Datatech Solutions2Easy Method to Fix 403 Forbidden Error in WordPress Site

Easy Method to Fix 403 Forbidden Error in WordPress Site

It is an undeniable fact that WordPress is one of the most popular content management systems that let users build their own site hassle-free. The easy-to-use interface, Google-friendly, and SEO-optimized platform is always the recommended choice of many top experts. But as soon as you start running your WordPress site, it is common to get stuck with 403 forbidden errors.

Most beginners usually get panic when they discover 403 forbidden errors in their WordPress site. However, these errors are not as risky as compared to others. With a quick method, you can easily fix 403 forbidden errors. So let’s start with knowing how to fix 403 forbidden error.

What is 403 Forbidden Error, and why does It Appear?

Before going towards the main topic, it is vital for you to understand the cause of the 403 forbidden error. In general terms, 403 forbidden error is an HTTP status code that appears when an error occurs on your site. While this is not the only text that you see when an error occurs, but each problem has a specific error message that appears on your screen.

The 403 forbidden error is shown when your server restricts you from viewing any specific page or your site. The message that appears on your screen can be a 403 forbidden error- you don’t have permission to access this server. But why it appears? What’s the cause that stops you from viewing the page?

Well, there are many reasons behind the 403 forbidden error. However, the most common reason is the poor configuration of the security plugin. The top reasons that can cause this error to appear on your screen include

  • Incorrect .htaccess file setting
  • Incorrect file or folder permission

Now, once you know the reason, let’s know how to solve this error and make your site functional again.

How to Fix 403 Forbidden Error in WordPress Site?

Fixing 403 forbidden errors is never a big issue in the WordPress site. You never need an expert’s help or spend a few dollars on finding how to fix the problem. Even if you are a beginner, you will find fixing 403 forbidden errors as easy as drinking a cup of tea. So let’s know step by step process on how to fix forbidden WordPress site errors.

1.    Check for Incorrect .htaccess File Settings

It is important for you to first check for the .htaccess file settings to ensure that it is working or not. While, as a beginner, you may never have heard the name of the .htaccess file, this is because it is usually hidden in one of the directories of your website, only if you are not using any file manager. Otherwise, the file manager makes it visible for you by default.

If your hosting provider provided you a cPanel to access the site, then you need to directly go to the control panel, find the file manager, and then go to the Public_html directory and then find the .htaccess file. If it is still unavailable, then go to the settings and find it in hidden files. Now, once you’ve found the files, follow the steps discuss below.

  • Download the .htaccess file on your computer and have a backup of the current file.
  • Delete the file from your hosting account
  • Check whether the site is now working fine or not; if it’s working fine, then your .htaccess file was corrupt.
  • Now go to the WordPress dashboard, and click on settings, then click on permalinks to create a new file.
  • Click the save changes button, and thus, your new file is created.
2.    Check for Incorrect File or Folder Permission

Now is the time for the second method if your 403 Forbidden error isn’t caused by the incorrect/corrupt .htaccess file. The second method is to check for the incorrect file or folder permission. But how to do it? Don’t worry; it’s not as technical as you think.

You need to configure the access rights of the file through a simple process. But what is access rights? Files are assigned standard permission when they are created; however, during plugin installation, or any software installation, you must need to change the access right. But how to do it? It’s simple; follow the steps discussed below to do it.

  • Connect with your client’s site through FTP
  • Root directory usually as Public-HTML in your hosting account
  • Select file attributes by doing right click on the selected file
  • Enter the value of 755 once you check the checkbox of “apply to the directory only.”
  • Once you change the folder permission, go back to step 3 and enter the value 640 instead of 755 and click on Apply to files only.

Thus by doing these steps, your error caused by incorrect file or folder permission is fixed. This is one of the easiest methods that you can apply to fix 403 forbidden errors in the WordPress site.

Leave a Reply

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