Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Best development procedure to stop dev site getting indexed on search engines


Go to End


2 Posts   978 Views

Avatar
jkdude

Community Member, 19 Posts

11 July 2016 at 12:43pm

Hi all,

I was just wondering what you think is the best method of setting up your build so that the development site doesn't get indexed to a search engine but the live site is.

Thanks in advance.

Avatar
craig-opticblaze

Community Member, 10 Posts

12 July 2016 at 7:00pm

You can add

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
to the head of your dev site?

Or

User-agent: *
Disallow: /
to your robots.txt file.

Just don't push either file to your live server.