SEO Friendly URLs for CubeCart in Windows
Posted on November 27, 2009
I have a client hosting CubeCart on a Windows server. Unfortunately the built in Apache 2 mod_rewrite rules that come bundled with CubeCart don't work in IIS/Helicon.
Simple fix...
Edit your httpd.ini with the following.
[ISAPI_Rewrite]
RewriteRule .*?/cat_(d+)(?:.[a-z]{3,4})?([^?]*)(?:?(.*))? /index.php?_a=viewCat&catId=$1?2&$2 [I,L]
RewriteRule .*?/prod_(d+)(?:.[a-z]{3,4})?(?:?(.*))? /index.php?_a=viewProd&productId=$1?2&$2 [I,L]
RewriteRule .*?/info_(d+)(?:.[a-z]{3,4})?(?:?(.*))? /index.php?_a=viewDoc&docId=$1?2&$2 [I,L]
RewriteRule .*?/tell_(d+)(?:.[a-z]{3,4})?(?:?(.*))? /index.php?_a=tellafriend&productId=$1?2&$2 [I,L]
RewriteRule .*?/_saleItems(?:.[a-z]+)?(?(.*))? /index.php?_a=viewCat&catId=saleItems?1&$1 [I,L]
Related posts
- CubeCart 4.2
CubeCart 4.2.0 was released on 20th February. Its quite a mile stone release, featuring several... - CubeCart 4.2 bugs fixed
Looks like some of my reported CubeCart bugs got fixed in the new release. Swell!... - CubeCart – Product Thumbnail in viewProd.tpl
Here's something that bugged me for a while. I'm working on an alternative image viewer... - CubeCart and WordPress Integration
Following my 100% CubeCart orientated posts, here's another late night hack. It integrates a WordPress... - Unique home page mod CubeCart 4
Here's a quick modification to allow you to have a unique home page. A page...



August 9th, 2010 - 15:52
Hi,
This works great – apart from when you have more than one page of products in a category. When you try to move onto the next page – it just keeps on refreshing the first page of products.
Is there a fix for this?