• Resolved thomaswm

    (@thomaswm)


    Hello,

    I am experiencing a strange error: I have created a multisite network with WordPress 3.5.1. On a test blog, I have set up a HTTP 301 redirect using the Quick Post/Page Redirect Plugin:
    https://testlv.ppby.de/2013/04/01/redirect-test/

    When I open this link in Firefox or Chromium (Linux Mint), I get an error saying that the browser has encountered a redirection loop.

    I have recorded the HTTP headers of one single request of that page using the Firefox addon “Live HTTP headers”.
    https://pastebin.com/da16KpyU

    You see that the redirect from https://testlv.ppby.de/2013/04/01/redirect-test/ to https://testlv.ppby.de/2012/09/26/staatliches-regionalfernsehen/ works, but then the latter page always redirects to itself.

    But if I open https://testlv.ppby.de/2012/09/26/staatliches-regionalfernsehen/ directly in my browser, it is displayed without my browser throwing any error.

    Active plugin on this specific blog:
    – Quick Page/Post Redirects Plugin
    – YD Network-wide options

    I’ve also tried the “Disable Canonical Redirects” plugin, but it does not make a difference if it is active or not.

    I’ve also tried creating redirects on another blog in the same network using the Redirection plugin instead of Quick Page/Post Redirects, but the same error occured.

    Network activated plugins:
    – Quick Cache
    – WordPress MU Domain Mapping
    – WP Last Login
    – Network Plugin Auditor
    – Exclude Plugins

    Greets,
    Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thomaswm

    (@thomaswm)

    I have found a workaround for this problem. I just hook into the wp_redirect filter and add a “Connection: close” HTTP header.

    function close_connection_after_redirect($location,$status) {
        header("Connection: close",true);
        return $location;
    }
    
    add_filter('wp_redirect','close_connection_after_redirect');

    I haven’t found out yet what has actually caused the redirect loop, but this workaround solves the problem for me.

    Greets,
    Thomas

    Thread Starter thomaswm

    (@thomaswm)

    This error is gone since we deactivated Apache’s mod_cache plugin. This behaviour might have been related to ticket #12175.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirection loop: Page redirecting to itself sometimes’ is closed to new replies.