CNSearch 1.5.1
Google Sitemap Automatic Generation
Note: Google Sitemap generation is not the main CNSearch function; first of all, CNSearch is the system for full-text search at a site.
To generate Google Sitemap, one should perform indexing (see indexing module) and set the search module (see search module) at the site. After that, Google Sitemap generation can be performed by means of accessing the address:
http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword
where,
- http://www.yourserver.com/cgi-bin/search.cgi - full path to the search module;
- secretword - password for the statistics interface (see statistics)
If search index contains several sites, then, using additional parameter 'd', you can assign the site number the Google Sitemap will be generated for.
This method is described in Searching Through Selected Sites paragraph.
For example:
http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword&d=5
Google Sitemap generation should be performed right after the search index updating. In Unix/Linux systems, the "fetch" (installed at FreeBSD by default) or wget programs are used for this purpose:
fetch -q -o /path/to/www.site.com/sitemap.xml \
http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword
or
wget -q -O /path/to/www.site.com/sitemap.xml \
http://www.site.com/cgi-bin/search.cgi?sitemap=1&password=secretword
where
- /path/to/www.site.com - path to the site root directory
- http://www.yourserver.com/cgi-bin/search.cgi - full path to the search module
- secretword - password for the statistics interface (see statistics)
Related links
- About Google Sitemap at Google site
- BSD fetch utility at www.freebsd.org
- The official site of GNU Wget