简体   繁体   English

wp-admin重定向到wp-login

[英]wp-admin redirecting to wp-login

When I try to login to my wordpress admin panel, it again redirects me to the wp-login page with blank page having just "-" in the page. 当我尝试登录到我的wordpress管理面板时,它再次将我重定向到wp-login页面,其中空白页面的页面中只有“-”。 If I open my wp-login page manually then also I get redirect to blank page named wp-login. 如果我手动打开wp-login页面,那么我也将重定向到名为wp-login的空白页面。 I have tried many possible solutions like : 我尝试了许多可能的解决方案,例如:

  • enabling wp_debug errors 启用wp_debug错误
  • deleting .htaccess file 删除.htaccess文件
  • etc. 等等

When I enter username and password in wp-admin page it tells me that connection not secure. 当我在wp-admin页面中输入用户名和密码时,它告诉我连接不安全。 can it be the problem ? 可能是问题吗? If yes, show me please how to solve it. 如果是,请告诉我如何解决。

You should check your websites with a malware scanner tool 1st. 您应该使用恶意软件扫描工具1st检查您的网站。 A good start would be to use Sucuri's free online scanner ( https://sitecheck.sucuri.net/ ). 一个很好的开始是使用Sucuri的免费在线扫描仪( https://sitecheck.sucuri.net/ )。 2nd, since you have cPanel access you can login to cPanel, go to phpMyAdmin and the check your database. 第二,由于您具有cPanel访问权限,因此可以登录cPanel,请转到phpMyAdmin并检查数据库。 Access wp_options table and check these 2 entries: siteurl and home . 访问wp_options表并检查以下2个条目: siteurlhome If there you have https:// then you need to have a valid SSL certificate to get rid of that SSL warning (an expired SSL or a self signed SSL will give you that warning). 如果您有https://,那么您需要具有有效的SSL证书才能摆脱该SSL警告(过期的SSL或自签名SSL将为您提供该警告)。 You could try setting http:// instead of https:// on those 2 fields and try again to login to your Wordpress using http://siteurl/wp-login.php + login credentials. 您可以尝试在这两个字段上设置http://而不是https://,然后再次尝试使用http://siteurl/wp-login.php +登录凭据登录到Wordpress。 See if you get redirected or not. 查看您是否被重定向。 You should also check your .htaccess file to see if you have any redirections there from regular http connection to a secured connection. 您还应该检查.htaccess文件,以查看是否存在从常规http连接到安全连接的任何重定向。 Also check if you have any plugins that do any types of redirections and you could temporary change their names via FTP or File Manager in cPanel (wordpress will disabled them). 另外,请检查您是否有执行任何类型重定向的插件,并且可以通过cPanel中的FTP或文件管理器临时更改其名称(wordpress将禁用它们)。

I experienced a similar problem and tried the following to fix it: 我遇到了类似的问题,并尝试了以下解决方法:

  1. If you're running site under apache , verify the .htaccess doesn't have anything that is redirecting user, check here wordpress.org 如果您正在apache下运行站点,请验证.htaccess中没有正在重定向用户的任何内容,请在此处检查wordpress.org
  2. Disable plugins via database 通过数据库禁用插件
  3. Make a note of the installed version , download the version from wordpress and replace the wp-admin and wp-includes folders. 记下已安装的版本从wordpress下载版本,并替换wp-adminwp-includes文件夹。 Make sure to back up these folders up before replacing them. 更换它们之前,请确保备份这些文件夹。 My method is to upload the new folders but with a different name (eg wp-admin2 ), then rename the original (eg wp-admin1 ) then rename the recently uploaded folder to wp-admin . 我的方法是上传新文件夹,但使用其他名称(例如wp-admin2 ),然后重命名原始文件夹(例如wp-admin1 ),然后将最近上传的文件夹重命名为wp-admin

Replacing the wp-includes folder solved the issue for me. 替换wp-includes文件夹为我解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM