Cindy Turlington
Cindy Turlington

Reputation: 2527

How to avoid google indexing my site under development is completed

I have a new site and a new domain, will take about 2 months to complete development and then will go live. Only then I want google starts crawling and indexing my site. So the question is how to "shut off" google indexing for these 2 months before going live? Right now I plan to use this index.html:

<html>
<meta name="googlebot" content="noindex">
UNDER CONSTRUCTION
</html>

I will start development in index.php, when done I will remove index.html, then googlebot will start indexing starting from index.php.

Don't know if this sounds like a good plan.

Upvotes: 0

Views: 3102

Answers (1)

Harkirat Saluja
Harkirat Saluja

Reputation: 8114

You can create robots.txt in your project directory and add following to it:

User-agent: *
Disallow: /

So when a bot reaches your page it first checks robots.txt file and if disallow is there it would crawl your pages. Read more about it here

Upvotes: 0

Related Questions