mix ULR's in Google sitemaps

Discussion in 'Google Sitemaps' started by thanapa, Oct 19, 2012.

  1. #1
    Hi Guys

    I created my sitemap mixing normal ULR's and .gz URL's as below. Is it ok to use like that ?


    <?xml version="1.0" encoding="UTF-8"?>
    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <sitemap>
    <loc>http://www.example.com/default.aspx</loc> (around 200 normal aspx URL's )
    <lastmod>2012-10-18T18:23:17+00:00</lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.example.com/products.xml.gz</loc> (Over 100,000 products)
    <lastmod>2012-10-17</lastmod>
    </sitemap>


    <sitemap>
    <loc>http://www.example.com/contact.aspx</loc>
    <lastmod>2012-10-18T18:23:17+00:00</lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.example.com/help.aspx</loc>
    <lastmod>2012-10-18T18:23:17+00:00</lastmod>
    </sitemap>
    <sitemap>
    <loc>http://www.example.com/news.aspx</loc>
    <lastmod>2012-10-18T18:23:17+00:00</lastmod>
    </sitemap>


    </sitemapindex>
     
    thanapa, Oct 19, 2012 IP
  2. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #2
    Your sitemap index files should ONLY contain URL references to other sitemap.xml files. Your sitemap.xml files then contain references to your page URLs.

    Regarding sitemap index files, see this:
    http://www.microsystools.com/products/sitemap-generator/help/xml-sitemaps-page-limit/

    You can not mix normal URLs into sitemap index file. Place those in a normal XML sitemap file instead. (Are you are at all sure you need a sitemap index file? Standard XML sitemap files can old up to 50k URLs)
     
    websitetools, Oct 22, 2012 IP
  3. thanapa

    thanapa Well-Known Member

    Messages:
    527
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Yes correct, this is for google sitemap. That is why i compressed all the files into 3 gz files. because we have over 100000 pages.
     
    thanapa, Oct 31, 2012 IP
  4. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #4
    You gave this code example:

    Is default.aspx is an XML sitemap file that corresponds to XML sitemaps protocol?

    Based on the file name, I would assume not. It seems you in a sitemapindex file are referencing page URLs. (Which is not correct.)

    You can see http://www.sitemaps.org/protocol.html (official page) for more information

    When you got it working, you can try submit to Google Webmaster Tools as it will give you warnings/errors
     
    websitetools, Oct 31, 2012 IP
  5. thanapa

    thanapa Well-Known Member

    Messages:
    527
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #5
    Thank you, you mean if i use <sitemap> , then i can not mixed URL's. Becasue under XML <sitemap> can only add sitemaps , NOT normal URL's. Correct ?
     
    thanapa, Nov 1, 2012 IP
  6. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #6
    That is correct :)
     
    websitetools, Nov 6, 2012 IP
  7. thanapa

    thanapa Well-Known Member

    Messages:
    527
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #7
    Thank you very much websitetools :)
     
    thanapa, Nov 20, 2012 IP