Posting a sitemap for a public appfarm site

Hi

We have a public site which needs SEO improvements. Specifically we want to submit a sitemap to google. I have tried the following:

1 uploading sitemap.xml to files → does not work as it is not contained in the same domain as the web page (rather it is stored in https://storage.googleapis.com)

2 creating an api endpoint that returns the xml. → does not work as the appfarm api will return JSON format and this is not accepted by google.

Is there any other ways of doing this? Is it possible to create a “static link” so that i get a link in my appfarm solution that can link outside to the google domain, or some how create an alias for the google file so it looks like it is residing in the appfarm domain?

Thanks

Johan

Hi Johan,

A possibility could be to use the “.well-known Directory Entries” in the Environments config.

There is some useful information regarding this in the Appfarm Docs:

In the docs it states the following:
" Another way to inform search engines is to submit a sitemap, but depending on the nature of your app you may not need a sitemap. In Google’s documentation on sitemaps they state that you might not need a sitemap if:

  • Your site is small (Google classifies a site with 500 pages or fewer as small)

  • Your site is comprehensively linked internally

  • You don’t have many media files (video, image) or news pages that you want to show in search results

If you determine that you require a sitemap, you can generate an XML sitemap and add it as a .well-known directory entry in the Production environment. You must then submit it directly within Google Search Console."

Hopefully this helps!

// Ulrik

That worked! Thanks for a great advice.

Regards,

Johan

1 Like