Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,155 members, 7,815,026 topics. Date: Thursday, 02 May 2024 at 05:25 AM

What Is Sitemap.xml And Robot.txt And Their Function For A Web Project - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / What Is Sitemap.xml And Robot.txt And Their Function For A Web Project (1559 Views)

Creating Xml Sitemap And Submitting To Google (A-Z Guide) / How to get and customize custom robots.txt for blogger / How To Set Up Custom Robot Txt And Custom Robots Header Tags On Blogger (2) (3) (4)

(1) (Reply)

What Is Sitemap.xml And Robot.txt And Their Function For A Web Project by SundayBakare: 9:47pm On Dec 01, 2017
Learn how to create a sitemap.xml and robot.txt file for your web project


What is a sitemap file ? a sitemap.xml file is one that contains information regarding all of the pages on your website, the information contained in this file is used by search engines to determine the level of importance and priority of your web pages, this file is written using extensible markup language which is a more detailed and intricate way of creating web documents unlike HTML the tags used in XML are more descriptive, so lets create a sitemap.xml file for a web project with the following pages.

1.www.webproject.com/
2.www.webproject.com/contactUs/
3.www.webproject.com/aboutUs/
4.www.webproject.com/portfolio/


So above is a simple website with four pages, the sitemap file below will contain information about the four pages to be used by search engines.

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://www.webproject.com/</loc>
<lastmod>2017-11-15</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.webproject.com/contactUs/</loc>
<lastmod>2017-11-15</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<url>
<loc>http://www.webproject.com/aboutUs/</loc>
<lastmod>2017-11-15</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>http://www.webproject.com/portfolio</loc>
<lastmod>2017-11-15</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
</urlset>



The tags are self-explanatory for instance the outermost tag is urlset so it will contain a set of url's and the first url tag contains

loc - Specifies the page on the website

lastmod - Indicates the last time the page was modif
Re: What Is Sitemap.xml And Robot.txt And Their Function For A Web Project by Davidlollipop(m): 9:56pm On Dec 01, 2017
Nice
Re: What Is Sitemap.xml And Robot.txt And Their Function For A Web Project by Webman007: 8:59am On Dec 02, 2017
Good piece....the article below will show you how to create one for your website and other infors you need to know about Sitemap.

https://doerstechnologies.com.ng/how-to-generate-create-xml-sitemap-website

(1) (Reply)

I Forgave Him But A Boy Still Remember, Mark Zuckerberg Explains / Drop Your URL For More Traffic / Looking For Someone To Take Some Simple Web Designing Jobs Off My Hands

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.