Mobile app version of vmapp.org
Login or Join
Cooney921

: How should I submit these urls to Google Webmaster tools On my site you can do a search for a an artist, this gives a URL of the form http://example.com/artistid, this goes to my application

@Cooney921

Posted in: #GoogleSearchConsole #Sitemap

On my site you can do a search for a an artist, this gives a URL of the form example.com/artistid, this goes to my application server if the page has never been requested it then creates it, uploads it to Amazon S3 and redirects to artist.example.com/artistid, if already exists it then immediately redirects to artist.example.com/artistid
So my question is how does this fit in with SEO and sitemaps. In Google Webmaster Tools each sub domain seems to be treated separately I cant see anything to tied them together but should I be submitting urls of the form example.com/artistid (which will just resolve to redirects) or artist.example.com/artistid (but I have to make sure the page has already been created if I do it this way). Or should I submit to both ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

The first aspect, sitemaps, which was touched on in the comments, will only work with URL's in the same domain, in other words the example.com sitemap should only contain links in the form of example.com/artistid then in the artists.example.com sitemap it should contain the links for artists.example.com, now since the only content that has already been generated is hosted in the S3 bucket and not on the application it would be safe to add the S3 bucket pages to the Google index directly. This could even be automated by re-generating the sitemap.xml file first, then using the Search Console API do a PUT request to www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath where siteUrl is the root domain including the protocol such as www.example.com/ and feedpath is the full URL of the sitemap file such as www.example.com/sitemap.xml. As long as you are updating the lastmod field for the generated page to be the current date and any other pages that have been updated have their lastmod field updated to the right date Google will download a copy of the new sitemap file, and list all the new or modified pages for crawling.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme