Home › Forums › Redirect loops › I'm getting error – The page isn't redirecting properly
- This topic is empty.
-
AuthorPosts
-
February 9, 2017 at 10:31 am #25450
Filip Visic
GuestI’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
February 9, 2017 at 10:53 am #25451Rogier
KeymasterIf 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 );
February 9, 2017 at 1:23 pm #25473Filip Visic
GuestThanks! It did the job 🙂
February 9, 2017 at 5:24 pm #25535Rogier
KeymasterJust for my information: do you use the free CloudFlare flexible SSL?
June 24, 2017 at 1:02 pm #41831Luccy
GuestI have same problem. My site not redirect to https
June 24, 2017 at 1:09 pm #41833Rogier
KeymasterDid you follow the instructions in this article?
https://really-simple-ssl.com/knowledge-base/redirect-https-not-working/December 26, 2017 at 3:53 pm #68812Stefan
GuestHey 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?
December 26, 2017 at 3:59 pm #68813Rogier
KeymasterThe 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/August 9, 2018 at 7:41 pm #119138michael stabile
ParticipantSame 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)August 23, 2018 at 10:52 am #122415Greg
GuestSame issue here…GTMetrix can’t scan my site…have you found the solution?
Using Cloudflare flexible SSL and Really Simple SSL.
August 23, 2018 at 1:56 pm #122466Rogier
KeymasterPossibly the problem is caused by Cloudflare. I don’t have this problem with Really Simple SSL for example. I would recommend to contact CloudFlare support and ask them if they know of this problem.
August 23, 2018 at 11:30 pm #122674mike
GuestWhat is your domain ? I have not gotten an answer to this yet. Guys at Really Simple SSL couldn’t say what it is. I found that if I disable the plugin my SSL still works and there’s no issue on GTMetrix. However with the plugin I’m getting .5-1 second faster speed on Pingdom, so I prefer to use the plugin. I went back and forth many times with both Cloudflare & GTMetrix. GTMetrix pointed out that the redirect only happens on their Vancouver location, not Dallas, so when you test your site you can use Dallas no problem. But it still left me wondering if my site is inaccessible from visitors in Vancouver or even other places. I tested my site here to see if it loads from different locations worldwide: https://www.geoscreenshot.com/capture
First test showed this error for Vancouver:
“Error 1018 Cloudflare is unable to resolve your requested domain.”
But when I ran the test again it worked, so I don’t know.If you give me your domain I’ll write to Cloudflare again and tell them I’m not the only one. They had even asked for a route trace from GTMetrix which I got and gave them. Thought they’d be able to pinpoint the problem, but they didn’t. And corresponding with them like 20 times each time I get a reply from a different rep who doesn’t really know what’s going on. I would like to get this fixed though so let me know your domain and let me know if you have the same result when you disable the plugin, or when you test GTMetrix using Dallas location.
October 11, 2018 at 6:47 am #136097Burt
GuestI had the same issue and this is how I solved it –
Go to your account in cloudflare -> crypto
1. In SSL choose Full
2. Always use https – set to off
3. HTTP Strict Transport Security (HSTS) – set to disabled
4. Authenticated Origin Pulls – set to off
5. Opportunistic Encryption – On
6. Onion Routing – On
7. TLS 1.3 – Enabled
8. Automatic HTTPS Rewrites – EnabledI just went around in circles with GTMetrix on vancouver, however changing the above settings resolved it for me. Also I am on Amazon AWS if that helps. Fel free to visit us – https://burtkohl.com
Hope the above helps!
February 27, 2019 at 5:58 pm #199470kusnendar
GuestSame problem on my site kusnendar.web.id, error in gtmetrix
February 28, 2019 at 8:37 am #199656Mark
KeymasterHi,
your site does have the secure lock so everything seems to be set-up correctly. Having a redirect from http:// to https:// is normal, after moving to SSL most traffic will come in on https://, eliminating the need for the redirect. If you test your site with https:// the redirect warning will disappear.
Mark
September 10, 2019 at 11:47 pm #273832ARB
GuestHi,
My website is made in wordpress and I am getting (This landing page isn’t loading because of a 301 onsite redirect loop). Please help what i have to do so as this issue could be resolve.September 11, 2019 at 10:41 am #274173Rogier
KeymasterHi, did you check this article?
https://really-simple-ssl.com/knowledge-base/my-website-is-in-a-redirect-loop/ -
AuthorPosts
- The topic ‘I'm getting error – The page isn't redirecting properly’ is closed to new replies.