Hi is there a way to generate an XML sitemap? How do I do it?
Hi @Walds!
If you add /sitemap.xml at the end of the published project’s URL, you’ll get the sitemap
If you need to prettify it, you can load the full URL in this XML viewer.
Is there a way to edit the xml file? Should I just upload it on the assets folder on the settings menu or is there a different approach in uploading it?
Right now, you can’t edit it, but that’s an option we can add in the future.
May I ask why you want to change it?
Is there a way to exclude some pages from the sitemap but still make them publicly accessible?
Also, how do you handle adding URLs to the sitemap that are based on dynamic content? For example, we have a business/group directory with ~5K listings (so far) that will eventually get to 20K+. Each has their own URL for SEO, but it’s just one dynamic page in Bubble that displays content based on the URL. In our Bubble app, each of these 5K listings is automatically added to our sitemap. How would we do this with WeWeb?
So far I’m finding it disappointing that there’s almost no info for SEO in the docs. It seems like anything SEO-related is from people asking questions in the forum. Any plans to improve this in the future?
Hey, at the moment, you’d have to add this URLs to the sitemap yourself, as WeWeb doesn’t know what’s inside your backend at build-time (as we don’t read your data), and can’t “guess” what the URLs will be.
For the docs, we are improving them as we speak. The lack of SEO-related docs was due to the vast majority of our users using us to build internal tools or SaaS apps, which are not focused on SEO or are ok with the default features
Thanks for your feedback though! We’ll add this to our new articles.
Above, you said we can’t edit the sitemap. Has this changed?
For the Directory part of our app, users add businesses/groups to the Directory. When this action happens (a new Listing is created), is it possible to use a workflow action to add a URL to the sitemap?
If that’s not possible, is there another way we could automate this via custom code?
It’s nice that the sitemap is auto-generated. But sitemap only seems to include a few pages and none of the dynamic pages. So with 50K pages it includes 4 only. Is there a way to include the dynamic pages in there as well?
Hi @davhad
You can upload a custom sitemap in your app files.
Make sure to set the path to sitemap.xml
so it overrides the sitemap that’s generated by WeWeb by default.
Hey Joyce. Yeah, I understand how to upload files and name them. How can that file be auto-created is the question. Don’t see any docs on that.
Also how the current sitemap is generated and what it’s supposed to include and exclude.
Thanks
Hey @Joyce,
I am following up regarding this question I also need to index loads of dynamic pages, how to proceed currently?
(I have new suppliers joining everyday, so I would need to have a system that automatically update the sitemap and add new pages)
You could simply write/compose a script that would generate any sitemap you want. What backend are you using?
I am using Xano, sounds good do you have more info on how to do that?
I found this topic, but I’m no Xano expert, you might want to look in the Xano forum for this, or as they suggest, use an external API to generate it by sending the data from Xano.
Thank you for the resource. However, do you know if it can be automatically uploaded to WeWeb or the Search Console?
The main issue I’m facing is figuring out how to automate the sitemap fetching process regularly so I don’t have to do it manually every two days.
Once you have your sitemap, you should be able to post it from Xano to this endpoint in the Search Console.
Thanks, get it, I just realised you can submit several sitemaps for one website. I didn’t know.
Is the weweb generated sitemap.xml only showing the static and user-defined pages? (doesn’t include dynamic pages)…
That’s why you need to generate it yourself, have a look at the above answers