P
P
pavelkunyavskiy2018-02-06 20:30:24
Search Engine Optimization
pavelkunyavskiy, 2018-02-06 20:30:24

How to redirect the www version of the site correctly?

How and where to redirect from www.example.comto example.com?
There are 3 options in the domain registrar panel: Masked, Unmasked and 301.
Or do it in the nginx settings?
How to do it right for SEO? For articles moved, 301 is understandable, but what to do with such a redirect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Exploding, 2018-02-06
@pavelkunyavskiy

The same as for articles moved.
There is no fundamental difference. It is possible even in php, even in .htaccess, even in the domain panel, but do not forget to check all other options that exclude duplicates:
- http & https
- /index.php & /
- /index.php?par=value & /?par =value
- url ending with / and without / (google says that it likes when there is no / if this is the final page at the end of the url ... or in all cases ... I don’t remember already)
- and a million more possible duplicates , of which I don’t remember one part now, and I don’t know the other.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question