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
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.
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 .
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.