Answer the question
In order to leave comments, you need to log in
Redirect from HTTP to HTTPS looping?
I tried three redirect options, I tried it in the site config, htacccess, it's the same everywhere. Namely, an endless redirect from https to https, provided
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI } [R,L]
While when entering https ://example.com - everything is fine
Answer the question
In order to leave comments, you need to log in
If "everything is fine when entering https://example.com ", then the redirect redirects the browser to the wrong place.
Of course, you should look at the site itself or try it yourself through the "Developer Tools - Network" to see - somewhere there must be differences - or www appears / disappears somewhere, or something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question