Zenphoto Google Sitemap

I think it’s cool to help Google bot crawl my gallery. So I create this dynamic Google sitemap generator for ZenPhoto. First, this script will select all albums, then list all pics from that album, and will recursively do so for aech of the subalbums. I put the priority 0.5 (as what is defined as default priority by Google here) and put and changefreq as never (this is optional, maybe someone can enhance on this).

How to install:

There is a readme file in the ZIP, just in case:

1. Extract it, upload the file sitemap.php to zp-core.

2. At the root folder of gallery, find .htaccess file and add the following line:

RewriteRule ^sitemap\.xml$ zp-core/sitemap.php [L,QSA]

add it exactly below this line:

RewriteEngine On

Save and reupload the .htacess file.

Then you can access your sitemap at www.domain.com/gallery/sitemap.xml

Download:

zenphoto-google-sitemap

Demo:

http://basri.my/gallery/sitemap.xml