Google has help and services for Webmasters. Among the things they provide and encourage are sitemaps. However, it’s not as complex as it all seems. WordPress and coppermine, and many other CMSs have scripts that generate these sitemaps. There are tools that run from your computer too, but these can’t know the internal structure of the site database, and so they are inefficient or don’t work for dynamic sites like WordPress and Coppermine.
With over 2000 images in my photo site, it seemed useful to generate a Google Sitemap for the Coppermine gallery. After some searching a plug-in turned up in the Coppermine Forums.
This plug-in is fairly primitive and when I tried it, it failed with an error on Google. Google produced an error about the first URI produced by the script. Also, the entire sitemap was produced as one single line, so error messages or looking at the sitemap with an editor were not user friendly.
I have repaired the script and you can find the new version by the link below. It is advertised to work for CPG 1.2.x, 1.3.x and 1.4.x. For more information, read the forum post above.
To use the script, unzip and upload it to the base coppermine directory on your site and then activate it from the browser with a URL like: http://www.yourdomain.com/cpg144/sitemap.php
Then visit the Google Webmasters Site,
- create an account, or log in with your google email account,
- add your site, using the Coppermine base directory, and
- then verify your site using one of the methods provided and finally
- point to your sitemap to tell google about it.