I'm getting error – The page isn't redirecting properly

Home Forums Redirect loops I'm getting error – The page isn't redirecting properly

This topic contains 8 replies, has 3 voices, and was last updated by  michael stabile 6 days, 10 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #25450 Reply

    Filip Visic

    I’m getting error – The page isn’t redirecting properly (both Firefox and Chrome)

    Also, after I enable Really Simple SSL, and try to run PageSpeed Insights or GTmetrix, I get these errors:

    Google PageSpeed Insights

    Fetching the page exceeded the maximum of 10 redirects. The last URL fetched was https://www.zanosna.com/. This may indicate the page is redirecting to itself, or has a loop of redirects.

    GTmetrix

    Analysis Error
    Redirect loop detected!
    Visiting the page has resulted in an endless chain of redirects. This is usually caused by a problem in your application.

    Here is the code that plugin inserts to .htaccess file

    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.5.0]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    #25451 Reply

    If the issue is gone when you remove the .htaccess redirect, you could you try this instead of the current redirection:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>

    Add this to your wp-config to prevent it from writing the .htaccess again:
    define( 'RLRSSSL_DO_NOT_EDIT_HTACCESS', TRUE );

    #25473 Reply

    Filip Visic

    Thanks! It did the job 🙂

    #25535 Reply

    Just for my information: do you use the free CloudFlare flexible SSL?

    #41831 Reply

    Luccy

    I have same problem. My site not redirect to https

    #41833 Reply

    Did you follow the instructions in this article?
    https://really-simple-ssl.com/knowledge-base/redirect-https-not-working/

    #68812 Reply

    Stefan

    Hey Roger,

    Why did you ask this “Just for my information: do you use the free CloudFlare flexible SSL?”

    I am using CloudFlare flexible SSL and I get this issue on Google Insights or GTmetrix. What should I do?

    #68813 Reply

    The original poster had an issue because of the specific configuration in CloudFlare. Here’s an article how you should setup CF:
    https://really-simple-ssl.com/knowledge-base/ssl-cloudflare-really-simple-ssl/

    If the issue is not a redirect loop, but you get warned about having three redirects, I would recommend reading this article:
    https://really-simple-ssl.com/knowledge-base/avoid-landing-page-redirects/

    #119138 Reply

    michael stabile
    Participant

    Same issue here, GTMetrix can’t scan my site, keeps saying “Redirect loop detected”. Otherwise the site seems to work fine, pages load with green lock, Really Simple SSL mixed content scan shows no issues. Using Cloudflare flexible SSL & all required settings are in place (Aways Use HTTPS page rule is setup, Automatic HTTPS rewrites is enabled). Only issue is indicated by GTMetrix, but I use GTMetrix alot & would like to know what’s causing this.

    https://www.bestdealsfind.com/uncategorized/pix/ (always has the problem)
    https://www.bestdealsfind.com (problem is intermittent)

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: I'm getting error – The page isn't redirecting properly
Your information: