I have created a sub domain and put robots file
As follows
User-agent: *
DisAllow: /
Will it affect my main domain?
I have robots file in my main domain as follows
User-agent: *
Allow: /
I have created a sub domain and put robots file
As follows
User-agent: *
DisAllow: /
Will it affect my main domain?
I have robots file in my main domain as follows
User-agent: *
Allow: /
A robots file is evaluated per origin (scheme + hostname + port). That means a file served from a subdomain only governs crawling of that subdomain. is correct to point out that the main domain is unaffected unless the same content is also reachable under the main domain URLs (for example via aliasing, reverse proxying, or serving identical pages from both hosts).
Crawlers fetch the file from the root of each host (origin)/robots.txt, so http and https and each subdomain need their own file. Major engines support Allow/Disallow rules and simple pattern matching, but behavior can differ in edge cases; authoritative guidance is available from Google's robots documentation and robotstxt.org.
Quick checklist and troubleshooting:
As tried to explain, Allow means permitted crawling and Disallow blocks crawling. Keep robots files simple, test changes, and follow the official docs for exact parsing rules.
Jump to Post— Member #616971This will affect your main domain only if it is accessible through your main domain url also.
e.g. yourmaindomain .com/robots.txt
This will affect your main domain only if it is accessible through your main domain url also.
e.g. yourmaindomain .com/robots.txt
Allow mean do you allow to check your website to search engines if you are disallow it's mean you are disable allow to search engine to check your website:)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.