My aim is to block all of the gallery except from the d sub folder. Will this work to achieve this? Thankyou for your help. User-agent: * Disallow: /gallery/ User-agent: * Allow: /gallery/d/
That should work. You can even remove that one extra line, so it looks like this: User-agent: * Disallow: /gallery/ Allow: /gallery/d/ Code (markup):
Thanks Pr0t0n. I was wondering how to do this from subdomain perspective. My buddy owns a domain and gave me a subdomain to use for it. Is this the best way to set up robots blocking the site and allowing the subdomain as well? Thanks.
you have written the code differently, instead of writing once. you can check the syntax's in many SEO forums even at dp
One change I would make is in the order of the commands. I think the order is important. User-agent: * Allow: /gallery/d/ Disallow: /gallery/