• Just installed this plugin and it completely broke my website.

    ‘Too many redirects try clearing cookies’

    Tried it again and the famous white screen of death…..

    How can this be fixed?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author shawfactor

    (@shawfactor)

    This is highly likely go to another plugin actually doing this. Basically this plugin simply redirects to the https version and send a header for your browser to remember to go to the https version in the future.

    So if another plugin (or even a server rule) is redirecting back to the http version then what you are saying could happen.

    As such can you try deactivating all other plugins and let me know if this solves things?

    Failing that can you let me know the website with the issue and I’ll look at the headers?

    Thread Starter cjc1867

    (@cjc1867)

    Hi
    Thanks for contacting me, my website was built from https from the start obviously with an SSL certificate installed so really I shouldn’t have to redirect it to https or have I got that wrong?

    The website is https://towywebdesigns.uk

    I did a test on https://httpschecker.net/ and it said I wasn’t using hsts so I am trying to implement it and I got the problems mentioned above.

    Also, the address bar had my website URL and a repeat of my WordPress directory in it so causing the so many redirects.

    i.e. https://mydomain.uk/mydirectory/mydirectory/mydirectory……etc.

    I have not come across this problem before or understand what’s going on but I would like to get it fixed.

    Thanks

    Colin

    Plugin Author shawfactor

    (@shawfactor)

    The redirect only happens when someone requests the http version, as I said my plugin will then redirect the user to the https version ANd send some headers telling the browser to remember to only access the site from the https version (this is essentially what hsts is).

    As I said it is likely another plugin causing the issue. Can you try deactivating them?

    If you are reluctant too then you can often add hsts without a plugin through Htaccess:
    https://www.a2hosting.com/kb/security/ssl/enabling-http-strict-transport-security-hsts-for-your-site

    Plugin Author shawfactor

    (@shawfactor)

    I am resolving this for good order. If you have eliminated other plugins then repost on the thread as i will be monitoring it

    I have the same issue.

    I get an infinite redirect when I try to activate LH HSTS. The main site works fine, but all subdirectory sites have too many redirects.
    https://blogs-dev.princeton.edu/wdstest/
    https://blogs-dev.princeton.edu/hsts-test/

    I deactivated all plugins, including mu-plugins, and I then reactivated LH HSTS.

    Too many redirects occurred trying to open “https://blogs-dev.princeton.edu/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/wdstest/”.

    /wp-admin works fine on both the main site and the subdirectory sites.

    Plugin Author shawfactor

    (@shawfactor)

    Okay you’ve done the right thing, can you confirm you are using Multisite subdirectory?

    Sorry for the delay in responding. We have a setup that mixes subdomains and subdirectories in the same multisite system. So when LH HSTS is activated, subdomain sites are fine, but subdirectory sites get the infinite redirects.
    https://blogs-dev.princeton.edu (main site, okay)
    https://blogs-dev.princeton.edu/wdstest/ (subdirectory site, infinite redirects)
    https://perla-dev.princeton.edu (subdomain site, okay)

    Plugin Author shawfactor

    (@shawfactor)

    okay thansk I’ll look at the code and try to work out what would be hapeening

    Pete

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Broken website’ is closed to new replies.