I
I
Ilya Beloborodov2016-09-05 11:10:00
htaccess
Ilya Beloborodov, 2016-09-05 11:10:00

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

1 answer(s)
A
Alexey, 2016-09-05
@alsopub

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 question

Ask a Question

731 491 924 answers to any question