: Allowing Google to index auto generated sub domains I have a web application where each new customer using the application has their own unique subdomain. This allows them to link to the products
I have a web application where each new customer using the application has their own unique subdomain. This allows them to link to the products they create on our site.
If my website is example.com then my customers get the domain customer.example.com. These subdomains are auto generated when the customer sets up their account.
What can I do so that Google will index these subdomains?
More posts by @Alves908
3 Comments
Sorted by latest first Latest Oldest Best
From what I've seen, Google is really good at finding new websites really quickly. That being said, if you want to make sure that it gets picked up readily and your web system generates a sitemap.xml file, then you can submit the file using the following URL (PHP code):
$url = "http://www.google.com/webmasters/sitemaps/ping?sitemap=" . $sitemapUrl;
Full PHP script on how to use curl to submit the sitemap to Google:
www.benhallbenhall.com/2013/01/script-automatically-submit-sitemap-google-bing-yahoo-ask-etc/
Just make sure you do not submit a sitemap more than once a day. If you submit the same too many times, Google is likely to block your IP address.
Generally, Google will find sites fairly quickly. I actually discovered that Google may be watching registration/DNS entries and finding sites within hours. They found one of my sites, spidered it, indexed it, and I saw search traffic within about 2 hours! You may not need to do anything. If you want to tell Google about the site, link to the sub-domain from the parent domain. That is the easiest way. Find an appropriate page that Google pays attention to- that is, spiders fairly often. About, Contact, and the like are not generally spidered often, but perhaps you can create a page just for this purpose. Your choice. You do not need a sitemap on each sub-domain or anything else new. That is backwards logic. Modifying the sub-domain will not speed up discovery of the sub-domain.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.