D
D
dmitrypix2016-10-27 01:05:09
htaccess
dmitrypix, 2016-10-27 01:05:09

How to set up htaccess redirects?

After inserting it into .htaccess, it redirects to https with ERR_TOO_MANY_REDIRECTS and I can't get it back

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://site.ru/$1 [R,L]

Please help me fix it.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question