I
I
Ilya Boyko2018-10-15 17:33:39
htaccess
Ilya Boyko, 2018-10-15 17:33:39

Question about redirects. How to do it right?

Good afternoon! help me figure out what I need =)
there is a landing page
there is an ssl certificate
Hence the first question is which address is better or more correct to indicate in Yandex webmaster
1) httpS://site.ru/?
2) http://site.ru/?
3) with www...?
4) without www...?
As I understand it, there are more options
5) httpS://www and without www
but this is a game in my opinion
At the moment my main mirror is httpS://site.ru, but "/" is displayed in the page tab in the search - just slash
In my .htaccess
it is now specified:


RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

and redirects to httpS:// at any address. The point
is that the www.site-analyzer.com service gives an error WWW redirection 301
Please tell me what I'm doing wrong ...?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrej Sharapov, 2018-10-15
@Boykoilya

All answers can be found here:
https://pixelplus.ru/samostoyatelno/stati/indeksat...
https://github.com/madeas/analytics/blob/master/.h...
https://github.com /phanan/htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question