D
D
dfhusfhgsuo32017-03-18 02:05:27
htaccess
dfhusfhgsuo3, 2017-03-18 02:05:27

Why is the redirect not working on the main page?

The redirect from http to https works on all pages except the main page
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,QSA]
The code worked correctly on the old server, after the move is not correct.

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