-1

I have been messing around for 3 hours with XAMPP and WAMP and I can't seem to get it to fully work with my website. So my alternative is to buy a cheap host just for testing but I have one concern. I was thinking of creating a subdirectory such as www.example.com/testsite/ and upload it there but I don't want it to get indexed by Google before I make all the changes/fixes. And after I'm done, move it to public_html. How long does it take for Google to index pages?

John
  • 167
  • 1
  • 7
  • 17

2 Answers2

2

You can simply use a robot text file with contents

User-agent: *
Disallow: /

The "User-agent: *" means this section applies to all robots. The "Disallow: /" tells the robot that it should not visit any pages on the site.

Check the Robots

Info regarding where to put the file

On a Shared host

On a Virtual host

1

You may use a robot.txt file.

http://www.robotstxt.org/

Here you can find the very same question: Stop Google from indexing

EDIT: I don't know you knowledge, but in my very humble opinion, I suggest you to create a virtual machine (virtualbox + a simple linx distro). A more easier solution I can suggest, is vagrant. This will open your mind to a new dev/test approach. Hope this helps.

Community
  • 1
  • 1
Daniele Vrut
  • 2,835
  • 2
  • 22
  • 32