XML Sitemap: notify search engines of site updates

XML Sitemap (formerly Google Sitemap) automatically creates a site map that conforms to the sitemaps.org specification. This helps search engines keep their search results up to date.

XML Sitemap includes optional modules which allow the site administrator to customize the site map output and submit the site map to search engines automatically.

You can

4.7 with gsitemap install

marafa - October 16, 2006 - 09:43

Installation
__________
1.Create an account at https://www.google.com/webmasters/
2.copy the extracted gsitemap directory to ~/www/drupal/modules/
3.enable the module in administer/modules
4.configure the module in administer/settings/gsitemap

Configuration
_____________

1.Add your site to https://www.google.com/webmasters/sitemaps/siteoverview?hl=en
2.Verify your site by uploading the specified html file (normally google*??????.html) to your site's root directory
3.Ensure that clean urls are enabled ( adminsiter/settings )
4.Go back to "Google My Sites" link and click on "Add a Sitemap"
5.Enter the URL http://www.domain.tld/gsitemap

Notes
_____

1.The sitemap should have been uploaded to google by now.
2.Wait patiently for googlebot to come around to your site and index it. Normally, less than 24 hours.

gsitemap with clean urls disabled

diego belotti - October 27, 2006 - 12:52

Hi all.
I can't enable clean urls on my web site, so to use gsitemps, I've solved the problem uploading alternatively the following scripts.

The simpler:

<?php
    
print file_get_contents(
        
"http://www.diegobelotti.com/?q=gsitemap"
    
);
?>

This one needs a writable file in your site root called gsitemap.xml:

<?php
    $url
="http://www.diegobelotti.com/?q=gsitemap";
   
$xml=file_get_contents($url);
   
$point=fopen('gsitemap.xml', 'w');
    if(
fwrite($point, $xml))
   {
       print
"xml created!";
   }
   else
  {
      print
"ERROR";
  }
 
fclose($point);
?>

Obviously replace my url with your own!
Then submit to Google the php script itself in the first case and the file gsitemap.xml in the second.
The second script must be run almost daily to keep up-to-date the xml file. You could include it in your cron file...

Hope this helps!

More information [italian only! :-( ] on my web site http://www.diegobelotti.com/?q=Drupal_Sitemap_Module_addon

Diego
http://www.diegobelotti.com/

It's cool solution

Tim-R - November 21, 2007 - 13:22

THX!:)

It works on Drupal 5.x with XML Sitemap module as well, but instead of http://www.yoursite.com/?q=gsitemap in the script admin have to put following address: http://www.yoursite.com/?q=sitemap.xml.

UPDATE:

Google Sitemap tool accepts sitemaps in Drupal manner. I typed "?q=sitemap.xml" in and the sitemap was submited!:)

 
 

Drupal is a registered trademark of Dries Buytaert.