Sitemap with more than 2lacs URL

Discussion in 'Google Sitemaps' started by p4pravin, Mar 9, 2010.

  1. #1
    Hey all,
    I am new to generating and submitting URL to Google for indexing.
    I have gone th' google docs for sitemap.

    also i gone th' sitemap generation script, but it is taking so much time and also include all unnecessary urls as well..
    So i have create my sitemap.xml manually using my PHP script and DB.

    now i have few queries .

    1.how to update sitemap daily.

    like i have created an xml file with the use of PHP and take care of a single sitemap should not have more than 50,000 urls
    now i want that this sitemap.xml will get updated when any new URL is generated on site.

    So my question is how do i update the sitemap daily?...

    do i have to create a cron which execute the file daily.
    but then it will not add the url at the same time when the new url is added to site.

    what is the important of tag <changefreq> and <lastmod> in sitemap format.


    any help will be greatly appreciated.
    thanks
     
    p4pravin, Mar 9, 2010 IP
  2. MarinIke91

    MarinIke91 Peon

    Messages:
    46
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Update the sitemap daily with a cron job. You can re-submit the sitemap to the search engines with the sitemap ping URLs.
    You can use this handy sitemap ping URL generator tp get yours: http://www.sitemaphub.com/XML-Sitemap-Ping-Url-Generator.htm

    changefreq = how often the page is expected to change. Leave it empty if in doubt.
    lastmod = when was the page last modified. Should be set to minimize useless downloads of old pages.
     
    MarinIke91, Mar 10, 2010 IP
  3. p4pravin

    p4pravin Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hey thanks for your support.

    i have one small query.
    this is one of the URL node in my sitemap.xml

    <url>
    <loc>http://www.example.com/home</loc>
    <priority>0.5</priority>
    </url>

    now can i have attribute in this node
    like id="1" in URL node
    <url id="1">
    <loc>http://www.example.com/home</loc>
    <priority>0.5</priority>
    </url>


    is this a valid xml format for sitemap.
    Is this allow in sitemap.xml .
     
    p4pravin, Mar 16, 2010 IP
  4. tata_capl

    tata_capl Peon

    Messages:
    461
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have never seen this before but i dont think this is allowed in Valid XML Sitemap.
     
    tata_capl, Mar 21, 2010 IP
  5. sushilverma70

    sushilverma70 Member

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #5
    Hi Dear,
    I have same condition, In my site there are 40 L URls. I generate XML files of 50000 URLs then make SitemapIndex of Sitemaps. I update this Sitemaps weekly using cron and resubmit in Google Webmaster.
     
    sushilverma70, Mar 25, 2010 IP