Ask an SEO

403 Forbidden in WordPress [Possible Solve]

Tuesday, June 11th, 2019
2 min read

If you search the web you’ll find virtually every website that address the 403 Forbidden status code in WordPress lists off the same steps to take to resolve the issue. Well there was one that they missed (or I missed) and that’s the possibility of an existing folder. Let me explain.

This morning I found in Webmaster Tools that my client’s contact page was having crawl issues. My SEO software also listed the crawl anomaly, and even testing the page at the W3C Validator was unsuccessful. W3C displayed an error – 403 Forbidden.

What did I do to resolve the error?

After trying out various tests like deleting and regenerating the .htaccess file, deactivating all plugins, checking file permissions, and even going through the code within pertinent files in the theme directory, e.g. header, footer, index, and functions, I still couldn’t solve the problem.

Note: the page was displaying just find in by browser, but apparently couldn’t be crawled by any bots and spiders.

Finally, I decided to look into the root directory to see if there was anything there including an error file that I could look at, and found that a /contact/ folder had been made in the root of the server. There did lie my problem.

What stopped the error message?

I deleted the folder (I looked in it first and it was empty) and tested again, and the 403 Forbidden error was no more.

How did the contact folder get there?

Apparently another developer that had access to the server created the file while testing an instant chat plugin.

Recent Articles

WooCommerce Script to Show Product Subcategory Thumbnails

As SEOs we want to take advantage of all the WooCommerce customization options available through custom coding so we can provide users with the best...

Dec 21, 2022

How To EASILY Track PDF Downloads & PDF Reads

Tracking PDF views in Google Analytics can involve an extremely complex setup using Google Tag Manager, but there is another easier way. To do this...

Jan 16, 2021

Comments

One response to “403 Forbidden in WordPress [Possible Solve]”

  1. Hi,
    I was stuck on 403 forbidden error at my website. I was searching for a possible solution and I came across your article. I found this one to the best article and found the solution to my problem. Definitely, a very good article to fix this error. Thanks for sharing such detailed information.
    Keep it up.

Leave a Reply

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

Need Help with Your SEO Strategy?

Our team of SEO experts can help you implement effective strategies and optimize your website for better search engine performance.