Magento 1.9-重定向过多 [英] Magento 1.9 - too many redirects

查看:433
本文介绍了Magento 1.9-重定向过多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正试图找出我的问题几个小时。
我知道的最后一件事是,我在配置-> Web->不安全下进行了更改

I am currently trying to figure out my problem for hours. The last thing I know, was that I changed under Configuration -> Web -> Unsecure

基本网址为 https://example.com 在执行此操作后,当我转到网站时收到错误消息重定向过多。我试图用phpMyAdmin修复它,并将 secure_base_link unsecure_base_link 更改为 http://example.com ,但没有任何效果。也清除了var / cache和var / sessions,也清除了我的浏览器缓存。仍然没有新内容。

the base url to https://example.com After that action I get the error "too many redirects" when I go to my website. I tried to fix it with phpMyAdmin and changed the secure_base_link and unsecure_base_link to http://example.com , but nothing works. Cleared var/cache and var/sessions too and my browser cache too. Still nothing new.

推荐答案

可能是Magento,可能是您的Web服务器,也可能是其他一些有心的人,但不是想出了PHP代码。第一步是找出导致重定向循环的URL,然后通过该指示哪些系统导致了重定向,然后对其进行修复。这是第1步。

It could be Magento, it could be your web server, it could be some other well intentioned but not thought out PHP code. The first step is to figure out what URLs are leading to a redirection loop, and then through that intuit which systems are causing the redirect, and then fixing them. Here's step 1.

使用curl跟踪重定向- -i 将包含标头。

Use curl to trace the redirect -- the -i will include the headers.

curl -i https://example.com

然后,无论包含什么位置标头, curl -i 直到您看到与浏览器相同的模式。

Then, whatever location header is included, curl -i that until you see the same pattern as your browsers.

然后-在标题下方查看重放的内容。它是标准的Web服务器错误消息吗? Magento错误消息?您不能重现重定向循环,但是页面中有一些JavaScript吗?

Then -- look at the contents of the replay below the header. Is it standard web server error messages? Magento error messages? Can you not reproduce the redirection loop, but there's some javascript in the page?

所有这些都将为您提供解决问题的方法-即找出什么变化系统的库存行为导致重定向循环。

All of these will point you towards the solution to your problem -- i.e. figuring out what changes to your system's stock behavior caused the redirect loop.

这篇关于Magento 1.9-重定向过多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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