Answer the question
In order to leave comments, you need to log in
Search engines have indexed the link with the port - www.site.ru:8808/link. What is the best way to disable port indexing?
Hello colleagues!
I decided to test the new Habr service with a difficult question, most likely for SEO experts. In general, there is a site, and there is also a port for testing new things - 8808. So the problem is that Yandex and Google indexed several pages of the form site.ru:8808/link instead of site.ru/link and these pages are in the top to your requests. Is there a way to somehow disable port indexing and preferably without a significant loss in output?
Answer the question
In order to leave comments, you need to log in
once indexed, it means that they somehow found out about them, eliminate the cause, and put a permanent redirect to the site on the normal port ...
robots.txt file of the form
User-Agent: *
Host: www.myhost.ru :80
it is better to make a rule that makes a normal redirect with a 301 code from this port, the search engines understand it and work it out correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question