# Posting a sitemap for a public appfarm site

**URL:** <https://community.appfarm.io/t/posting-a-sitemap-for-a-public-appfarm-site/2197>\
**Category:** Ask the community\
**Created:** [December 19, 2025, 8:31am UTC](https://community.appfarm.io/t/posting-a-sitemap-for-a-public-appfarm-site/2197 "2025-12-19T08:31:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan18](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/johan18/32/748_2.png) [@Johan18](https://community.appfarm.io/u/Johan18)\
**Post date:** [December 19, 2025, 8:31am UTC](https://community.appfarm.io/t/posting-a-sitemap-for-a-public-appfarm-site/2197/1 "2025-12-19T08:31:30Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![ulrik](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/ulrik/32/1912_2.png) [@ulrik](https://community.appfarm.io/u/ulrik)\
**Post date:** [December 19, 2025, 10:46am UTC](https://community.appfarm.io/t/posting-a-sitemap-for-a-public-appfarm-site/2197/2 "2025-12-19T10:46:40Z")

</div>

Hi Johan,

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

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/c/c24f4172066743469a1e830f936bd706028cf3a4.png)

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

> **[Inform search engines - Apply SEO best practices | Appfarm Documentation](https://docs.appfarm.io/how-to/enhance-your-app/apply-seo-best-practices#inform-search-engines)**
>
> This guide describes how you can implement SEO best practices in Appfarm. It is not a general guide to SEO. If you are looking for a grounding in SEO, see this guide from Ahrefs.

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](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview#do-i-need-a-sitemap) 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](https://docs.appfarm.io/reference/configuration/environments#other) in the Production environment. You must then [submit it directly within Google Search Console](https://support.google.com/webmasters/answer/7451001#zippy=%2Csubmit-a-sitemap)."

Hopefully this helps!

// Ulrik

---

<div class="post-metadata">

**Author:** ![Johan18](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/johan18/32/748_2.png) [@Johan18](https://community.appfarm.io/u/Johan18)\
**Post date:** [December 19, 2025, 11:16am UTC](https://community.appfarm.io/t/posting-a-sitemap-for-a-public-appfarm-site/2197/3 "2025-12-19T11:16:16Z")

</div>

> [@ulrik](#):
>
> 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](https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview#do-i-need-a-sitemap) they state that you might **not** need a sitemap if:
> 
> - Your site is small (Google classifies a site with 500 pages o

That worked! Thanks for a great advice.

Regards,

Johan
