Forbidden 您无权访问此服务器上的/wp-login.php [英] Forbidden You don't have permission to access /wp-login.php on this server
问题描述
我的所有 WordPress 网站都有一个问题.我可以访问所有内容并在帖子、页面和其他内容中导航.但是当我转到 wp-login.php
时,我查看表单并输入用户名和密码.
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.
当我点击访问时:
禁止
您无权访问此服务器上的/blog/wp-login.php.
You don't have permission to access /blog/wp-login.php on this server.
我在文件夹 755
和文件 644
中拥有权限,如果可以,我会检查所有内容,有什么帮助吗?
I have permissions in folder 755
and files 644
, and I check all if i can, any help?
谢谢
推荐答案
解决方案是将其添加到 .htaccess 的开头
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>
这是因为许多主机受到攻击,使用来自其客户的 wordpress.
It's because many hosts were under attack, using the wordpress from their clients.
这篇关于Forbidden 您无权访问此服务器上的/wp-login.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!