Open Web Browser Tip: This page contains a redirect loop Resolution

Source: Internet
Author: User
Tags php file url example

The Web page generated too many redirects. Clearing the cookie for this web site or allowing Third-party cookies may resolve the issue. If it does not, it may be a problem with the server configuration, not your computer. Error 310 (net::err_too_many_redirects): Too many redirects. In fact, the browser has provided us with solutions to the problem.

The first is to clear the Web site's cookies or allow Third-party cookies. However, for ordinary users, you may not know how to clear cookies. Note: In most cases this is caused by cookies or by disabling cookies. Here are some ways to clean cookies in a few major browsers:

First, for the vast number of IE users, the mouse click IE icon, open IE browser, "Tools", open the Internet Properties dialog box, find as shown in the picture (other options are not checked):

Click the Delete button.

Second, for Firefox (Firefox), open the browser, "Tools"-"Options"-"Privacy", click "Delete Private cookies" can be.

Of course, you can also pull down and choose "Never record History" so Firefox won't save the site cookie. You can also "Use custom history settings" so that you can clear or set the cookie expiration date.

In addition, you can choose "Tools"-"Page Info"-"security" so that you can simply view and clear the cookies on the current site.

Third, for Google Browser (Chrome), "Tools"-"clear browsing data"-"Delete cookies and other site data", so that the site cookies.

If you use this method, the problem is not resolved, the basic can be determined is the site server configuration problem. Some webmasters redirect the URL example.com to www.example.com, causing the problem to occur due to redirection errors.

Finally, the emphasis on WordPress upgrade to the 3.1 version caused by too much redirection, thus unable to enter the home page.

This can be done by modifying any of the following files to resolve the problem that the front page contains too many redirects. All two files are located under the Wp_includes folder. First, for the modification of the canonical.php file, open the file with a text editor, and the following statement can be found at the beginning of the comment:

function redirect_canonical ($requested _url = null, $do _redirect = True) {

Change true to False.

Second, for the template-loader.php file, the following code fragment is found after opening:

if (defined (' Wp_use_themes ') && wp_use_themes) do_action (' Template_redirect ');

Delete the code or annotate it with the PHP annotation notation, and you can annotate the code with a multiline comment.

There is also a situation where there is too much redirection. But this is on the article and comments RSS page. Because redirection causes your blog to not be updated by subscribers. This situation is mostly due to the installation of the FeedBurner plug-in, uninstall this plugin can solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.