Avatar of NextCode
NextCode
 asked on

hide an entire subdomain from search engines.

Hi experts, thank you in advance for anyone that can shed some light on this.

I design and develop small websites for clients and use sub-domains from my own website (www.nextcode.com.au) as development areas.

I was hoping to find a way to completely hide these sub-domains from search engines as the clients don't want content and designs that haven't been finalised seen by the general public.

It appears placing code in the robots.txt file is the best option for this (within each sub-domains folder) however I am not sure what to be putting here to hide the entire sub-domain or if this is even the best option.

I was hoping someone could advise of the best option for ensuring that sub-domains I want hidden are in fact hidden from search engines.

Thank you to anyone that is able to shed some light on this request.

Richard.
Web DevelopmentSearch Engine Optimization (SEO)

Avatar of undefined
Last Comment
NextCode

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Geoff Kenyon

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
NextCode

ASKER
And that will work if I set the password on the total directory via CPANEL (won't allow other pages within that directory to be accessed either?
Geoff Kenyon

It should, all the pages are locked down correct?  As long as you password protect a directory and all the content in it, then you need the password, so search engines can't access it.
NextCode

ASKER
Thanks heaps, nice and simple solution.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes