切换到SSL后无法登录到我的wp

编程入门 行业动态 更新时间:2024-10-24 08:30:17
本文介绍了切换到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

本文发布于:2023-11-11 23:39:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1579862.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:切换到   SSL   wp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!