[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 425
  • Last Modified:

cPanel Subdomain Question

Hi,

When I create a subdomain, it shows the path as /home/username/public_html/subdomain_name

Question:

-Will Google (or search engine in general) pick up http://www.mydomain.com/subdomain_name, or subdomain.mydomain.com?

Thanks so much!
0
Computer Guy
Asked:
Computer Guy
  • 3
  • 2
1 Solution
 
Paul MacDonaldDirector, Information SystemsCommented:
That depends on how you "advertise" it.  Is subdomain.mydomain.com a valid path to your site?  Is that the link you encourage people to use?  If so, certainly Google (and all spiders) will pick up on that.  

If www.mydomain.com/subdomain is also valid, spiders may come across it anyway (even accidently) and it may get indexed that way as well.

0
 
Computer GuyAuthor Commented:
Would it be better for me to create a seperate account for each subdomain?
0
 
Paul MacDonaldDirector, Information SystemsCommented:
I don't know what you mean.  I presume you're talking about some hosting service, but that's not evident from your original post, so I can't authoritatively answer that question.

What I'm talking about is DNS, which is generally how humans find information on the Internet.  If you refer to your site, publicize it, etc as subdomain.mydomain.com, most humans will as well.  Search engine spiders should find it and index it that way too.  

The flip side is that if the site exists at mydomain.com/subdomain, those same search engine spiders will likely find the content there too, and index it that way as well.  This isn't necessarily good or bad, but may be different from the behavior you want.

One way to control this would be to add (or modify) the robots.txt file in the root of your mydomain.com site so spiders can't crawl the subdomain, but I think the result of that would be that none of the subdomain pages would ever be indexed.
0
 
Computer GuyAuthor Commented:
So the spiders will also look at my DNS zone file as well?

If there is a listing for subdomain.mydomain.com, then it will publish that if there is no robots.txt file telling it not to disallow it?
0
 
Paul MacDonaldDirector, Information SystemsCommented:
No, the spiders will crawl a link to a page, and from there go to other pages it links to.  They'll index the pages based on how they arrive at them (subdomain.mydomain.com, or mydomain.com/subdomain, or both).  

And yes, generally a spider will crawl a page and its links unless there's a robots.txt file explicitly directing it not to.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now