Error 310 (network :: ERR_TOO_MANY_REDIRECTS):

I do not get this error on my local host, only when I upload to my server does this error appear on one of my pages. any idea what i need to change?

+8
redirect php
source share
2 answers

I encountered this error in a web browser in which the web page I went to redirect to another web page that redirects back to the original endlessly, I also encounter situations where a programming error constantly reloads or redirects the page on its own.

One way to fix this problem is to actually monitor the requests that your browser makes on the server. Before this error, you should see several separate requests.

You can see the requests that your browser makes using the Chrome Developer Network tab (Ctrl + Shift + J) or the Firebug network tag in firefox. I think IE9 has a network tool in its developer tools (F12), but I cannot remember, and I cannot come up with a good enough reason to open IE9 for verification. But if it does not have a network tool, you can install the free version of HTTPWatch, which allows you to view individual requests made by your browser.

And if none of these features work, you can always install Fiddler or WireShare, which sniff the packets and requests made by your browser.

+15
source share

localhost and web servers is a different way for your files, so you need to edit the .htaccess file to get the actual base path and add this line of code int it

RewriteEngine On # Some hosts may require you to use the `RewriteBase` directive. # If you need to use the `RewriteBase` directive, it should be the # absolute physical path to the directory that contains this htaccess file. RewriteBase (your physical path) ....... 

all about .htaccess error

0
source share

All Articles