Answer the question
In order to leave comments, you need to log in
Main domain indexing?
The site https://site.com makes a 302 redirect to the subdomain https://test.site.com , I don't want the subdomain to be indexed, so I wrote disallow / for all agents in the robots.txt file, but I ran into a problem, Google bot cannot index pages for the main domain, and this is logical. written disallow. I need to have page indexing for the main domain, but hidden for the subdomain, can this be done somehow? Or will it be necessary to remove disallow for the subdomain and put up with it?
Answer the question
In order to leave comments, you need to log in
Then do not 301, but 302 redirect, if you need it directly. Then the main domain will continue to be indexed by search engines despite the redirect
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question