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 - Discover the 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 @netlify/plugin-sitemap - npm ?

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

hi @awrighty have the same problem, are you resolve this or not yet, if yes can you write me please the steps that you used , THANKS

@maroc.yes.1993,

Looks like you’ve a few duplicates:

It would be best if you don’t do that going forward.

@hrishikesh Im not found the answer yet, can I have some help

Both your sites are using manual deploys. These sites do not support build plugins. You would have to generate a sitemap yourself, on your machine and deploy that with your site.

To create sitemaps for your website, follow these steps:

  1. Understand Sitemaps: Familiarize yourself with the purpose of sitemaps. They help search engines discover and index the pages on your website.

  2. Choose a Sitemap Format: Decide whether you want to create an XML sitemap, which is the standard format for search engines, or an HTML sitemap for human visitors.

  3. XML Sitemap Generation:

    • If you’re using a CMS (Content Management System) like WordPress, you can use plugins such as Yoast SEO or Google XML Sitemaps to automatically generate XML sitemaps.
    • For custom websites, you can use online XML sitemap generators or create one manually using a text editor.
  4. HTML Sitemap Creation:

    • You can manually create an HTML sitemap page that lists all the pages on your website and organize them into categories for easy navigation.
    • Alternatively, some CMS platforms and website builders offer plugins or built-in features to generate HTML sitemaps.
  5. Submit Sitemaps to Search Engines: Once you have created your XML sitemap, submit it to search engines like Google Search Console or Bing Webmaster Tools. This helps search engines discover and crawl your website more efficiently.

  6. Regular Updates: Remember to update your sitemaps whenever you add new pages or make significant changes to your website’s structure.

By following these steps, you can create sitemaps that improve the visibility and accessibility of your website to both users and search engines.

Rank math plugin can create automatic sitemap like we can see sitemap on this site https://snapchatplanet.com/