Browse By

Fix the WordPress Admin Access Forbidden Error

The Problem

Here is a quick tip on how to fix an all too common error when using WordPress on a shared host. I have been using WordPress for a while now, and I was comfortable with how it works and operates, until yesterday. When trying to edit a post I received a “403 – you are forbidden to access post.php” error. I was obviously worried and frantic to get it working again so I could continue writing posts. After some searching on the Internet I found what I thought may be a solution.

The Background

It is normal practice for hosts to utilize strict security measures and lock down their servers. In a lot of cases they use the mod_security restrictions with extremely high filters. This causes a problem with access rights when using Apache’s mod_rewrite. The mod_rewrite versions of posts for WordPress are so much cooler than the default addresses (“?p=22”); therefore, most installations end up using mod_rewrite.

The Solution

Fortunately, the solution is incredibly easy to implement. All you have to do is add the 2 lines of code, located below, to the mod_rewrite section of your .htaccess file. The first 2 lines should be the following:
SecFilterEngine Off
SecFilterScanPOST Off

I hope this helps save a lot of time for anyone with this problem. This is a problem with an easy solution, fixable in just minutes!

%d bloggers like this: