Answer the question
In order to leave comments, you need to log in
How does robots work with subdomains?
*** It is also necessary to take into account that the site will have 2 copies (it will be opened from both forum.domain.ru and domain.ru/forum addresses), which may lead to the site being filtered by search engines for duplicating content. To prevent indexing by search engines of the technical address (domain.ru/forum), it is necessary to register in the robots.txt file a prohibition on indexing the specified directory (Disallow: /
forum
/
) site.ru, identical robots, will the robot continue to index dom.site.ru with the Disallow: /dom/ directive set?
Content robots dom.site.ru
Host: site.ru
User-Agent: *
Disallow: /dom/
Sitemap: http://site.ru/sitemap.xml
Answer the question
In order to leave comments, you need to log in
In general, if site.ru and dom.site.ru have the same robots.txt, then dom.site.ru will be an alias and should not be shown in the search (only site.ru will be), but this is just my guess
Register in site.com/forum/.htaccess:
RewriteCond %{HTTP_HOST} ^site.com|^www.site.com [OR]
RewriteCond %{HTTP_HOST} ^www.dom.site.com [NC]
RewriteRule ^(.*)$ http://dom.site.com/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question