切换到SSL后无法登录到我的wp-admin [英] Cant login to my wp-admin after switching to SSL

查看:226
本文介绍了切换到SSL后无法登录到我的wp-admin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近为我的wordpress网站(从http到https)安装了SSL证书,现在无法访问Wordpress Admin.刷新页面,但我尚未登录.

I recently installed SSL certificate for my wordpress site(http to https) and now I'm unable to access Wordpress Admin. It refreshes the page and I am not logged in.

我的wordpress文件中有忘记更改的内容吗?

Is there something I forgot to change in my wordpress files?

我检查了代码,登录表单指向我的旧站点(http站点),当我查看文件中的代码时,表单操作设置为site_url(),我似乎找不到

I inspected the code and the login form is pointing to my old site (the http one) and when I look at the code in the file, the form action is set to site_url() and I can't seem to find where it's defined.

推荐答案

您需要在wp-admin-> Settings-> General中更改站点URL.除了现在,由于您已被锁定,因此您需要进入phpMyAdmin并在wp_options表中手动进行操作.

You need to change the site url in wp-admin->Settings->General. Except now you need to go in through phpMyAdmin and do it manually in the wp_options table since you are locked out.

根据http/https,您将获得不同的cookie,因此您将获取https cookie,然后由于您的Wordpress设置指出了网站所在的网址而被重定向到没有cookie的http.

You get different cookies depending on http/https so you are getting the https cookie and then being redirected to http that has no cookie because of your Wordpress settings that say what url the site resides at.

这篇关于切换到SSL后无法登录到我的wp-admin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆