Create a sitemap.xml for SEO

ID - _BUGFISH - E#40
^Top
<< Back
Mobile-Menu










Create a sitemap.xml for SEO
Category: SEO
Sub-Category:
Creator: Jan-Maurice Dahlmanns
Created: 2020-08-26 00:35:31
Modified: 2024-11-17 04:10:05
Views: 801

Caution: I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.

This is the Main Layout of a sitemap.xml File

<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
  <loc>https://youtsitedomain/url</loc>
  <lastmod>2020-08-25T00:44:15+00:00</lastmod>
  <priority>1.00</priority>
</url>

<url>
  <loc>https://youtsitedomain/...</loc>
  <lastmod>2020-08-25T00:44:15+00:00</lastmod>
  <priority>1.00</priority>
</url>

</urlset>

Repeat the <url> block for every page of your site. The best way if to let a cronjob generate a new sitemap file
every X days with all available sites refering to content listed on this map. The priority tag will mostly be ignored by
crawlers. The lastmod argument tells a crawler the last time a site has been edited. The following Code could be the Layout of your robots.TXT file linking to the sitemap. This robots file is configured to allow crawlers to crawl all pages on your site:

Sitemap: https://yoursitedomain/sitemap.xml
User-Agent: *
Allow: /
Currently 0 Upvotes!

captcha image
System - 2024-11-05 18:30:52
Commenting System Initialized! Have a very nice day!

Switches: 0 | Arrivals: 8 | Visits: 8
This Website is using Session Cookies for Site Functionality.