Home > Web Dev > Make a Sitemap for Search Engines

Make a Sitemap for Search Engines

add following line to your robots.txt

Sitemap: http://www.example.com/name-of-sitemap-file.xml

Create a Sitemap File

A sitemap file that follows the Sitemap Protocol is just a straightforward ASCII text file. You can create it using any ordinary ASCII text editor. If you use Windows, Notepad (found in the Accessories folder of your Start menu) can be used. Do not use a word processor like Microsoft Office or Word.

By way of example, take a look at the following .
Example file:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>http://example.com/</loc></url>
<url><loc>http://example.com/thesitewizard-is-helpful.html</loc></url> 
<url><loc>http://example.com/thesitewizard-is-wonderful.html</loc></url>  
<url><loc>http://example.com/all-hail-thesitewizard.html</loc></url>
</urlset>

Place two files onto the root directory of your web host.

Advertisements
Categories: Web Dev
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: