Adding a sitemap to a BANS site
December 4th, 2007 by Robert
I’ve been experimenting lately with the BANS software package. One of the first things that I did was create a dynamic sitemap.xml generator for the search engines. Being a nice guy, I’m letting anyone have it that would like it.
To install, download it from here. Extract the zip file and open the README file. It should be pretty simple. By default, it lists content pages with a change frequency of ‘weekly’ and store pages with a change frequency of ‘always’. You can change this by editing the PHP file.
You will need to edit the .htaccess file that is already included with BANS, but it is very easy to do and you just need to add a single line to it. It is all included in the instructions. NOTE: In the .htaccess file, the ordering of the RewriteRules IS important. The rule for the sitemap must come before the rules for the index page or else it won’t work.
If you have any suggestions or questions, please let me know!
Like what you read? Don't miss anything, subscribe by RSSl!








Jeremy Says
The link 404s.
Dec 5th, 2007 at 10:09 am
Robert Says
Sorry about that, it is fixed now!
Dec 5th, 2007 at 10:19 am
Suzanne of New Affiliate Discoveries Says
Thanks for your generousity! I’ve tried the “other” sitemap mod, I’ll try yours on another site too!
Dec 8th, 2007 at 11:58 pm
Robert Says
Thank you very much Suzanne, glad it is working out for you!
Dec 9th, 2007 at 12:44 am
Rollie Says
Does the sitemap generator work with all BANS versions or only v3?
I am getting an error with it installed in a v1.2 site.
And BTW Webmogul, thanks for the generator. I like your blog, lots of good info!
Dec 12th, 2007 at 3:23 pm
Rollie Says
Sorry! Did I say v3.0? I meant version v2.0
Dec 12th, 2007 at 5:11 pm
Robert Says
Thanks Rollie! Glad we got your issue worked out too.
Dec 14th, 2007 at 11:57 pm
Mr Memory Card Says
The sitemap generator works great - Thanks!
there is 1 little “gotcha” that people should be aware of.
If you submit your sitemap to google using the webmaster tools you need to temporarily comment out the LAST line of your .htaccess file if you select the file method of verification.
If you don’t comment out the last line you cannot verify your sitemap using the file method and you will need to use the header method.
Jan 8th, 2008 at 9:27 pm