FREE Build A Niche Store Toolbar:

 

 
Over 100 Tools To Help You Create, Customize, And Optimize Your BANS Store! BANS Toolbar Home Page
 

Add a Dynamic Sitemap to your BANS Store

A sitemap is a page that displays all pages of your site in one place. A dynamic sitemap is a sitemap that automatically updates whenever you add a new page to a site. This is a huge timesaver as you have to do this manually if the sitemap isn't dynamic.

Before I continue I want to clarify that the sitemap being discussed here is for search engines and spiders, not for public viewing. This is not the same sitemap that Mark created a mod for at http://www.thenichestorebuilder.com/build-a-niche-store-sitemap-mod-complete-version.htm.

The dynamic sitemap here was created by BANS forum member WebMogul. He is kindly giving away this mod and it is a really great one. He does include instructions but there has been some confusion so I am clarifying here.

Go to WebMogul's website to download the necessary files at http://mogul.webmogulenterprises.com/adding-a-sitemap-to-a-bans-site. If you are successful at installing this mod then you have no need to continue reading. If, however, you get stuck somehow, please continue.

  1. Upload the sitemap.php page to your web site's root folder. This will be the folder where your index.php page is located.
  2. Edit the .htaccess file from your web server.
    • TIP: Quite a few people are getting tripped up here. The .htaccess file is usually hidden from view, causing people to think they don't have this file. Probably the easiest way to edit this is:
      • Find the .htaccess file that came with your purchased BANS software.
      • Make a copy of the original .htaccess before you edit it so you can always revert back if you make a mistake.
      • Edit the .htaccess file (as explained below). You can edit the file by right-clicking it and selecting, "Open As Text" (this is the option I have for Windows XP; your option may differ slightly).
      • Upload the modified .htaccess file to your root folder (the same folder you uploaded sitemap.php to).
    • Add RewriteRule ^sitemap.xml sitemap.php [QSA,L] directly above RewriteRule ^install.php install.php [QSA,L].
      • Click here to view the .htaccess file before and after this edit to see what your .htaccess file should look like.
    • Save the edited .htaccess in your web site's root folder (the same folder you uploaded sitemap.php to).
  3. View your newly created dynamic sitemap at http://<your site name>/sitemap.xml. You should see your site's content pages being listed before the store pages.
    • TIP: http://<your site name>/sitemap.xml and http://<your site name>/sitemap.php should show the same information.
    • Click here to view one my store's dynamic sitemaps created with this mod.
  4. Submit your sitemap.xml to Google's Webmaster Tools. If you yet have an account with Google's Webmaster Tools you can create one at www.google.com/webmasters/tools/.
  5. Submit your sitemap.xml to any other search engine that accepts them.
  6. Add your dynamic sitemap to your robots.txt. Instructions for doing this are at Add Dynamic Sitemap to robots.txt.

Potential Problem: When I first did this I found that my sitemap wasn't accurate. There were many pages missing. It turns out I had previously created a sitemap.xml page and this was overwriting the one I was now trying to create.

I resolved this by deleting the page from my server (I did this from my hosting site's File Manager) and starting from scratch. You can tell your sitemap is working if it says, " <!-- Generated by WebMogul's BANS sitemap generator: http://mogul.webmogulenterprises.com   -->" at the top. The color and alignment of this message may vary but not the wording.

Thank you to WebMogul for creating this mod!

Was this helpful to you?  Click here to drop a tip into the tip jar

 
   
The terms BANS and Build A Niche Store were created by brothers Adam and Kelvin and are used with permission.
Copyright ©2008