SEO urls

Upon installing storesprite you are given the option as to whether you also want to use SEO Friendly URLs (eg www.blah.com/section/2/widgets/ rather than www.blah.com/viewproducts.php?category_id=2).

Most advanced search engines are very happy to index the urls withg query strings, however you are all being told that you must use SEO Friendly URLS - so who are we to argue?!

Requirements

Your host must allow you to use Mod Rewrite via .htaccess, as long as they do you do not need to worry about the technicalities.

Activating

Upon installing, you are asked if you want to use SEO Frienly URLS, select 'yes'.

If you have previously installed and selected 'no' you will need to edit '/private/config.php' and add the following line:

$SEOFriend = "Y";

Installation notes

If you installed storesprite at the web root (eg. www.yourname.com) it should work out of the box. If you installed storesprite in a sub directory you will need to edit the .htaccess file to tell it the correct locations (as .htaccess will work from the web root).

The example below is the content of the .htaccess file if your storesprite install is located at www.yourdomain.com/store/. If you install at another location you would replace /store/ with the correct location for your installation.

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^sections/(.*)/(.*)/(.*)/(.*)/ /store/viewproducts.php?category_id=$1&position=$3&nresults=$4 [nc]
RewriteRule ^sections/(.*)/(.*)/ /store/viewproducts.php?category_id=$1 [nc]
RewriteRule ^brands/(.*)/(.*)/(.*)/(.*)/ /store/brand.php?brid=$1&position=$3&nresults=$4 [nc]
RewriteRule ^brands/(.*)/(.*)/ /store/brand.php?brid=$1 [nc]
RewriteRule ^products/(.*)/(.*)/(.*)/ /store/displayproduct.php?product_id=$2&category_id=$1 [nc]
RewriteRule ^docs/(.*)/(.*)/ /store/pages.php?cmsid=$1 [nc]

My Basket

  • Basket is empty!
Subtotal: £0.00

Secure Card Payments