Pricing Blog

Dynamic Subpages Not Listed in sitemap.xml (e.g., website.com/{city_name})

  • luca.heck-1382733843714277396

    Luca Heck

    19 days ago

    I have a large website with many dynamically generated subpages, for example:
    website.com/{city_name}
    (e.g., website.com/berlin, website.com/muenchen, website.com/prag, etc.)

    I want to list all these subpages in my sitemap.xml so that search engines can index them properly.
    Currently, only pages without a path parameter are listed in the sitemap, and none of the dynamic subpages (with {city_name}) appear.

    How can I generate and include all these dynamic URLs in my sitemap.xml?
    Is there a recommended approach or best practice for adding a large number of dynamic pages to the sitemap?

    Thank you for your support!
  • sabsab2385-1382735137258602647

    sabsab

    19 days ago

    @Luca Heck I think @Jonathan Fors is working on something you might have interest in: https://discord.com/channels/972416966683926538/972416966683926541/1382315166913532007
    👍1
    👍1
  • Tod-1382735189289079016

    Tod

    19 days ago

    Great job @Erik Fryscok! Your contribution to the Nordcraft Community just made you advance to Community Level 1! 🌲
  • luca.heck-1382736165962252298

    Luca Heck

    19 days ago

    @sabsab I actually need it by Saturday because we want to go live there^^ I'll see what I can do
    👍1
    👍1
  • lucasg-1382741485509808248

    Lucas G

    19 days ago

    For now you'll have to generate and host it yourself. It should be a txt file that crawlers can easily access.
  • luca.heck-1382741948661764279

    Luca Heck

    19 days ago

    Ok I think its relatively easy: Run a sitemap-generator script once a day in the Xano backend, which provides the sitemap.xml for Nordcraft... I think that's what you mean too @Lucas G
    👍2
    👍2
  • jonathanfors-1382751048049098862

    Jonathan Fors

    19 days ago

    I’ll also have a public free tool available sometime early next next week. Made it for internal use, but figured I’d make it public. Plugs into any database via rest api and hosts the file for you
    🔥2
    🔥1
  • luca.heck-1382781899210096733

    Luca Heck

    19 days ago

    Thank you @Jonathan Fors I would like to host the sitemap on our servers though.

    For those who are interested, this is how it worked for me with Xano:

    At night I run a task every day that generates the sitemap using Lambda Function. This is created as an attachment file and stored in a sitemap database.

    A GET API /sitemap is then used to provide the cached .xml file, which is provided from the sitemap database. Always load the latest sitemap.
  • jonathanfors-1382789486143869018

    Jonathan Fors

    19 days ago

    You’re able to download it and do whatever you want with it yourself as well @Luca Heck in this tool I’m talking about.

    But sounds like you’ve got it sorted already ✌️