wordpress 站点中发生未知的 302 重定向,将 https 重定向到 http [英] Unknown 302 redirect happening in wordpress site, redirecting https to http

查看:40
本文介绍了wordpress 站点中发生未知的 302 重定向,将 https 重定向到 http的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 服务器上的 IIS 10 中运行一个 wordpress 站点,我正在尝试切换到 HTTPS,但是当我这样做时(使用插件或手动更改配置文件),我得到了一个重定向循环.我做了一个重定向检查,结果发现有一个 302 重定向发生,将 https 重定向到 http.是否有任何插件或方法可以检查导致 302 重定向的原因?我正在使用 woocommerce 以及创世儿童主题.我不知道是什么导致了 302 重定向,非常感谢有关查找内容的任何帮助.

I'm running a wordpress site in IIS 10 on windows server and I'm trying to switch to HTTPS but when I do (using a plugin or manually changing the config file) I get a redirect loop. I did a redirect check and it turns out there's a 302 redirect happening that redirects https to http. Is there any plugins or ways I can check for what's causing the 302 redirect? I am using woocommerce as well as a genesis child theme. I'm at a loss as to what is causing the 302 redirect, any help on what to look for is greatly appreciated.

推荐答案

对于发现此问题的任何人,我的答案是 woocommerce 已选中结帐后强制使用 HTTP"选项.这导致除结帐之外的每个页面都重定向.

For anyone finding this, the answer for me was woocommerce had the "force HTTP after checkout" option checked. This caused a redirect for every page other than the checkout.

这篇关于wordpress 站点中发生未知的 302 重定向,将 https 重定向到 http的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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