I
I
Igor Mamontov2016-09-09 16:38:02
Django
Igor Mamontov, 2016-09-09 16:38:02

How to configure gluing http and https?

After analyzing it turned out that there are a lot of http and https duplicates on the site, in order to deal with this problem, you need to make a gluing, tell me how to make it as high quality as possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
un1t, 2016-09-09
@un1t

301 redirect from http to https
, you can also specify the Host directive in robots.txt

I
Ivan, 2016-09-09
@IvanDanko

You need to make a 301 redirect:
For most servers, the following lines of code in the .htaccess file will do:

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://site.ru/$1 [R=301,L]

F
firstlena, 2016-09-20
@firstlena

Here it is very well told about it: https://yandex.ru/blog/platon/2778

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question