2012-06-18 30 views
0

我有一個使用大量重定向的腳本。關於整個過程的一半,我得到在瀏覽器說法的錯誤消息:增加瀏覽器中允許的重定向?

This webpage has a redirect loop 
The webpage at http://localhost/....... has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer. 
Here are some suggestions: 
Reload this webpage later. 
Learn more about this problem. 
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects. 

是否有增加的瀏覽器允許的重定向的方法嗎?

+1

不能嘗試使用javascript(document.location =「」)或元(刷新)重定向 – Sergey

+0

我懷疑你是否應該依賴於瀏覽器特定的設置。爲什麼不發送更少的重定向? – SuperSaiyan

回答

3

在Firefox中,導航到地址欄中的about:config。搜索network.http.redirection-limit並將值增加到所需的值。

Firefox中的此設置控制在它停止跟蹤之前它將接受多少重定向。

+0

沒錯,如果是這種情況,那麼它是不可能的。 – drew010

+0

不,我只是想改變瀏覽器中的設置。我無法找到 - > config。可以在如何找到選項中更具體一點?謝謝 – Graham

+0

很抱歉編輯它,你把'about:config'放在瀏覽器的地址欄中。 – drew010