Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason Mackay 98 posts 149 karma points
    Dec 20, 2012 @ 13:23
    Jason Mackay
    0

    Various sites with one domain - Google crawling

    Hi,

    I was wondering if anyone has had this problem but I have various sites within one Umbraco instance, we have one of those sites which we dont want to be getting crawled. But you cant specify a relative link in robots.txt.

    Each site has a different domain, but uses same templates and doctypes. Anyone know a way around this?

    Preferably not using an Umbraco package.

    Thanks for any help in advance.

    Thanks

    Jason

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 22, 2012 @ 16:25
    Jan Skovgaard
    0

    Hi Jason

    You could make a setting on your Home document type where you have textstring field where you can write noindex,nofollow and then you can create a macro that inserts the value from the textstring into <meta name="robots" content="index, follow" /> in the <head> section on all the pages on the site.

    On the other sites you should of course write index,follow - and if the field is empty you can just make some logic to not write the <meta> tag.

    I hope the above makes sense otherwise let me know :)

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft