Error 310 (net::ERR_TOO_MANY_REDIRECTS):

后端 未结 2 543
再見小時候
再見小時候 2021-01-12 03:06

I am not getting 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?

相关标签:
2条回答
  • 2021-01-12 03:24

    localhost and web-servers are different path for your files so you need to edit .htaccess file for get 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)
    
    .......
    

    its all about .htaccess error

    0 讨论(0)
  • 2021-01-12 03:39

    I have run into this error in a web browser in which a webpage I went to redirects to another web page that redirects back to the original endlessly, I have also run into situations where a programming error continuously reloads or redirects the page to itself.

    The way to trouble shoot this type of problem is to actually watch the requests your browser is making to the server. You should be able to see multiple individual requests before this error comes up.

    You can see the requests your browser makes using the network tab of the developer tools in Chrome (Ctrl+Shift+J) or the network tag of Firebug in firefox. I think IE9 has a network tool in their developer tools (F12) but I cant remember, and I cant think of a good enough reason to open IE9 to check. But if it doesn't have a network tool you can install the free version of HTTPWatch, which allows you to watch the individual requests made by your browser.

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

    0 讨论(0)
提交回复
热议问题