Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Forbidden You don't have permission to access /wp-login.php on this server

I have one problem with all my WordPress's sites. I can access in all and navigate in the posts, pages and other. But when I go to wp-login.php I view the form and put user and password.

And when I clicking access goes here:

Forbidden

You don't have permission to access /blog/wp-login.php on this server.

I have permissions in folder 755 and files 644, and I check all if i can, any help?

Thanks

like image 745
user2274068 Avatar asked Apr 12 '13 10:04

user2274068


People also ask

Why do I get a 403 Forbidden message?

The 403 Forbidden Error happens when the web page (or another resource) that you're trying to open in your web browser is a resource that you're not allowed to access. It's called a 403 error because that's the HTTP status code that the webserver uses to describe that kind of error.

What does forbidden you don't have permission to access on this server mean?

Summary. The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your site for some reason. The two most likely causes of this error are issues with your WordPress site's file permissions or . htaccess file.


1 Answers

The solution is to add this to the beginning of your .htaccess

<Files wp-login.php>
Order Deny,Allow
Deny from all
Allow from all
</Files>

It's because many hosts were under attack, using the wordpress from their clients.

like image 172
SirPaul Avatar answered Sep 22 '22 16:09

SirPaul