How to create a sitemap?

Discussion in 'Search Engine Optimization' started by soccerfriend, Oct 27, 2008.

  1. #1
    How would I create a sitemap? Is there a specific name of the file? Are there any guidelines to follow while creating it?
     
    soccerfriend, Oct 27, 2008 IP
  2. gregjenx

    gregjenx Peon

    Messages:
    23
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    gregjenx, Oct 27, 2008 IP
  3. karnetics

    karnetics Peon

    Messages:
    254
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What is a sitemap?
    A site map is one page or sometimes a set of pages, which lists all, or most of the pages on a web site.

    What type of file is a sitemap?
    A true sitemap has an xml extension. Example “Sitemap.xml”

    What program can I use to create a sitemap file?
    Any standard text or program editor program.

    Here is the basic layout and format of a sitemap file. I know that this is a quick tutorial, but the example that you see here is the same that I use for my website and it is Google approved.

    What are you going to put into your sitemap file?
    You will enter most or all of your most important web page links from your website. Example;

    Index.html
    about.html
    YourCategoryPage.html
    YourArticle.html

    OK, to the point!!

    1. Open your favorite text editor.

    Add the following line at the beginning of the page, without the quotes. This line will tell your web browser what type of file it is viewing.

    “<?xml version="1.0" encoding="UTF-8"?>"

    2 . Now add the following line bellow, without the quotes.
    “<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">”

    3. Now add your website links, without the quotes.
    “<url>
    <loc>http://www.yourdomainname.com/index.html</loc>
    </url>”
    “<url>
    <loc>http://www.yourdomainname.com/about.html</loc>
    </url>”
    “<url>
    <loc> http://www.yourdomainname.com/YourCategoryPage.html</loc>
    </url>”
    “<url>
    <loc> http://www.yourdomainname.com/YourArticle.html</loc>
    </url>”

    4. Now close your code with the following tag
    “</urlset>”

    5. Save your sitemap.xml file to your web hosting service.

    Now visit, http://www.xml-sitemaps.com/ to validate your sitemap.xml file. If you sitemap returns no errors, you have created the perfect sitemap file.

    If you do not have a Google Webmaster Tools account, I would advice you sign up for it. Add your site map link, http://www.yourdomainname.com/sitemap.xmll to Google site map tools to have your sitemap index with Google.
     
    karnetics, Oct 27, 2008 IP
  4. tippie

    tippie Peon

    Messages:
    660
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I used a script to generate the sitemap.
    I think there are a lot of good free scripts available.
     
    tippie, Oct 27, 2008 IP
  5. sem

    sem Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes i would recommend the same
     
    sem, Oct 29, 2008 IP
  6. rena

    rena Peon

    Messages:
    1,987
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can create it from Google webmaster tool. No need any bulder, u can see some exmple file in xml format. just make a text file and name it sitmap.xml or any.xml then past the script from the example, edit it by your site name and page name. then uploaded it
     
    rena, Oct 29, 2008 IP
  7. catanich

    catanich Peon

    Messages:
    1,921
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #7
    We are using gSiteCrawler to handle the creating of the XML Sitemaps. DP also has a great section on this topic.
     
    catanich, Oct 29, 2008 IP
  8. seo services01

    seo services01 Banned

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    these all provide sitemap, you submit only ur site URL
    1) xml-sitemaps.com
    2) tools.webmasters.sk/sitemap-creator.php
    3) sitemapbuilder.net
    4) sitemapspal.com
     
    seo services01, Oct 29, 2008 IP
  9. olegb

    olegb Peon

    Messages:
    86
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    if you have your pages stored in a mysql database and your site is big, and you don't want to do it manually, then you can make a trick with php.
    in your .htaccess file add "AddType application/x-httpd-php .xml"
    create a sitemap.xml file
    your .htaccess will tell server to understand .xml as .php
    in your sitempa.xml write a query in php and echo articles urls as a xml site list (agood example is given by karnetics at #3)
    good luck!
     
    olegb, Oct 29, 2008 IP
  10. tanenqq

    tanenqq Well-Known Member

    Messages:
    124
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #10
    Thank you

    I'm also interested in this issue
     
    tanenqq, Oct 29, 2008 IP
  11. meeeter

    meeeter Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    There are several free sites that will do this for you. I will see if I can find this one site I always used to use.
     
    meeeter, Oct 29, 2008 IP
  12. seodilip

    seodilip Active Member

    Messages:
    697
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #12
    There are two different sitemap types. one is HTMl sitemap and another is XML sitemap. If you are talking about xml sitemap then use the following format.
    <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>http://www.yoursite.com/</loc>
    <priority>1.0</priority>
    <lastmod>yyyy-mm-dd</lastmod>
    <changefreq>daily</changefreq>
    </url>

    <loc>http://www.yoursite.com/page1.html</loc>
    <priority>1.0</priority>
    <lastmod>yyyy-mm-dd</lastmod>
    <changefreq>daily</changefreq>
    </url>
    </urlset>
     
    seodilip, Oct 30, 2008 IP
  13. marlonpowell

    marlonpowell Active Member

    Messages:
    464
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    85
    #13
    Thank you everybody who replied - but this thread be shifted to Google -> Sitemap section
     
    marlonpowell, Oct 30, 2008 IP
  14. genuineseo

    genuineseo Well-Known Member

    Messages:
    783
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #14
    Try this one, it can easy to Generates Site map pages xml-sitemaps.com.
     
    genuineseo, Oct 30, 2008 IP
  15. Hersheys

    Hersheys Peon

    Messages:
    2,591
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Hersheys, Oct 30, 2008 IP
  16. season

    season Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    sitemapfree.com is limited to 2000 pages , xml-sitemaps.com is 500 pages!
    i have a site more the 5k pages,where i can get the free sitemap generator ?
    thanks!
     
    season, Oct 30, 2008 IP
  17. kranthi

    kranthi Banned

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    kranthi, Oct 30, 2008 IP
  18. gadiez

    gadiez Active Member

    Messages:
    326
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    88
    #18
    use Google webmaster tool
     
    gadiez, Oct 30, 2008 IP
  19. gsv13

    gsv13 Well-Known Member

    Messages:
    2,773
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    130
    #19
    gsv13, Oct 30, 2008 IP
  20. services-seo

    services-seo Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    If I have an iframe on my website, should it be included in the site map? Thanks
     
    services-seo, Oct 30, 2008 IP