angeo
answered Apr 28 '23 00:00
Sure! Here's a revised version of the instructions to create an XML sitemap manually that should help you avoid creating duplicate content on other websites:
Open a text editor such as Notepad or Sublime Text on your local machine.
At the top of the document, insert an XML declaration that specifies the encoding you'll be using, like this:
<?xml version="1.0" encoding="UTF-8"?>
Add the root element <urlset>. Set the attribute xmlns to the sitemap namespace, which is http://www.sitemaps.org/schemas/sitemap/0.9. This step is important because it ensures that your sitemap is interpreted correctly by search engines:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
For each URL you want to include in the sitemap, create an <url> element with the corresponding information. For example:
<url>
<loc>https://www.yoursite.com/page1.html</loc>
<lastmod>2023-04-28</lastmod>
<changefreq>weekly</changefreq>
<priority>0.8</priority>
</url>
In this example, loc is the URL of the page, lastmod is the last modification date of the page, changefreq is how often the page is likely to change, and priority is the priority of the page relative to other pages on your site.
Once you've added all the URLs you want to include in your sitemap, close the <urlset> element:
</urlset>
Save the file with a .xml extension, for example, yoursite-sitemap.xml.
Upload the sitemap file to the root directory of your own website, and submit it to search engines via their webmaster tools or other submission methods.
By following these steps and uploading the sitemap only to your own website, you can help ensure that the content on other websites is not duplicated.