How do I create sitemaps?

Hi there,

how do I create sitemaps for sites that are deployed from Netlify? The site was hosted on Webflow and would now like to migrate to Netlify but I’m not sure if the Sitemaps are going to get affected as theyr were automatically generated by webflow.

@Madute There are several ways.

Perhaps the most obvious is to use the Netlify Sitemaps plugin:

Discover the Top 10 Netlify Build Plugins - https://www.netlify.com/blog/2020/06/22/top-10-netlify-build-plugins/

Another way would be to use a program such as Scrutiny to create your sitemap:

There are also online sitemap generators, such as this one:

https://sitemap-gen.com

You can even download a script to run against your site files and create one yourself:

http://goog-sitemapgen.sourceforge.net

1 Like

Hey I have the same issue from a Webflow site after installing the plug in is that it? or do I need to follow these steps https://www.npmjs.com/package/@netlify/plugin-sitemap ?

You can certainly do any of the things that @gregraven suggested :slight_smile: I think the plugin you linked is probably the simplest, if it works well for you.

I’ve installed the plugin but still now showing up on google? am I missing something

This shows up on google cconsole

@awrighty What does the file itself look like? Is it HTML or XML?

we just put our URL into that box and that’s how it came out are we doing this right?

@awrighty No, you have to enter the URL of the sitemap file. In your case, that would be:

https://cclmechanical.co.uk/sitemap.xml

It looks to be a valid sitemap.xml file, but it is for the website lease.page. I don’t think Google accepts sitemaps at one domain that point to files on a different domain, so you’ll have to fix that, and then re-run the sitemap so it points to files on your cclmechanical site.

Ah okay this is all new to us as we used to use webflow and it just worked so our technical knowledge it very little … we used that URL https://cclmechanical.co.uk/sitemap.xml but as you said it show a lot of errors about lease.page ( not a clue that this is ) is our domain showing something else or

in this image line 7 it talks about design tips etc nothing to do with our website

@awrighty Somehow the sitemap generator is picking up a starting point from another site. It probably just needs an edit in a config file to fix it, and then regenerate your site to regenerate the sitemap file.

Shall we just remove the Netlify plugin and reinstall? we wouldn’t have a clue how to edit and config the file

@awrighty Me neither. Sorry.

Thanks for your help anwyas