A
A
Artem00712017-04-14 21:56:18
PHP
Artem0071, 2017-04-14 21:56:18

Redirecting too many times?

Created an ssl certificate, added it,
registered the following in .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

As a result I get an error
Страница недоступна

Сайт выполнил переадресацию слишком много раз.

How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Shapoval, 2017-04-14
@AlexanderShapoval

RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]

True, this did not work on my project, I had to put a php redirect. there was a problem with routing

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question