I created a xml sitemap, but Google wouldnt allow it

Discussion in 'Google Sitemaps' started by Danaldinho, Sep 24, 2008.

  1. #1
    Hi, I created a sitemap of my website: http://www.lilwaynehq.com/sitemap and I have tried all extensions such as: xml, html, php etc, but it kept coming back as an error by Google when I added them from the webmasters tools :(

    Anyone know why its an error? and how I can fix it

    Thanks :D
     
    Danaldinho, Sep 24, 2008 IP
  2. hosty-crocodile

    hosty-crocodile Guest

    Messages:
    178
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    That isn't an XML Sitemap, thats why. Its just a normal page with lots of <a> links.

    You should learn how to create a proper XML Sitemap.

    This is an example of one:

    
    <?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>http://www.example.com</loc>
    </url>
    <url>
        <loc>http://www.example.com/page.php</loc>
    </url>
    </urlset>
    
    Code (markup):
    Its as simple as that. To add new pages, just copy the <url> to </url> code and change the URL to the next page.

    Hope I helped!
     
    hosty-crocodile, Sep 24, 2008 IP
  3. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
  4. laymybet

    laymybet Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you can find an automated xml script (free of course!) then let me know.
     
    laymybet, Sep 25, 2008 IP
  5. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #5
    To understand the differences between XML and HTML sitemaps, you may check this sitemaps comparison article containing explanation and code samples for all sitemap file kinds.
     
    websitetools, Sep 25, 2008 IP
  6. alraiah

    alraiah Active Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #6
    thankssssss
     
    alraiah, Sep 25, 2008 IP
  7. Danaldinho

    Danaldinho Well-Known Member

    Messages:
    169
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #7
    Well I tried what you said hosty-crocodile: http://www.lilwaynehq.com/sitemap/sitemap.xml

    But as you can see, it doesn't look correct, I know I havent changed the links to my own website, but I can easy do that, but I want to get it working right first.

    Can anyone help me

    Thanks
     
    Danaldinho, Sep 27, 2008 IP