Open/Close


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!

Site5 $5 Hosting Deal

Like what you read? Don't miss anything, subscribe by RSSl!

Share this post: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • SphereIt
  • del.icio.us
A few more you might be interested in:
  • eBay partner network is live as promised
  • Adding keywords to your BANS site title
  • BANS - The Good, The Bad And The Ugly
  • How to track clicks in a BANS site
  • Getting closer to a release


  • 12 Responses to “Adding a sitemap to a BANS site”

    1. 1

      Jeremy Says

      The link 404s.

    2. 2

      Robert Says

      Sorry about that, it is fixed now!

    3. 3

      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!

    4. 4

      Robert Says

      Thank you very much Suzanne, glad it is working out for you!

    5. 5

      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!

    6. 6

      Rollie Says

      Sorry! Did I say v3.0? I meant version v2.0

    7. 7

      Robert Says

      Thanks Rollie! Glad we got your issue worked out too.

    8. 8

      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.

    1. 1

      BANS - The Good, The Bad And The Ugly at A Mogul To Be

      […] The best thing about BANS it is has a really good community of users that are very helpful on their forums. From traffic discussions, to customizing and other topics, it has a good following that is very helpful. I myself have contributed where I could, answering questions both basic and advanced. I’ve even done a few modifications myself, such as the XML sitemap generator (which should have been a standard feature) and adding the ability to track clicks using Google Analytics. […]

    2. 2

      Niche Store Script » Blog Archive » Build a Niche Store: Week One Results

      […] recommend that you do is be sure to use a sitemap with your Build a Niche Store.  A Mogul to Be has a sitemap script that is easy to install and I highly recommend.  Be sure to submit your BANS site to Google […]

    3. 3

      How to Add your Dynamic Sitemap to your site’s robots.txt | Niche Store Strategies

      […] This idea comes from forum member WebMogul. You can see his instructions here. […]

    4. 4

      How to Add a Dynamic Sitemap to your Site | Niche Store Strategies

      […] can view WebMogul’s instructions and download the needed files here […]

    Leave a Response