- ## Activate the mod_rewrite Engine
- RewriteEngine On
- ## START: New rewrites
- RewriteRule ^info/(.*)/ /seoUrls.php?z=info&c=$1 [QSA,L]
- RewriteRule ^info/(.*)$ /seoUrls.php?z=info&c=$1 [QSA,L]
- RewriteRule ^sale-items/(.*)$ /index.php?_a=viewCat&catId=saleItems&%1 [NC,L]
- RewriteRule ^products/(.*)/(.*)/(.*).html /seoUrls.php?z=prod&c=$1&c2=$3 [QSA,L]
- RewriteRule ^products/(.*)/(.*).html /seoUrls.php?z=prod&c=$1&c2=$2 [QSA,L]
- ## END: New Rewrites
- ## START: Old Rewrites - CubeCart Defaults
- RewriteCond %{QUERY_STRING} (.*)$
- RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$ /seoUrls.php?y=info&id=$1 [QSA,L]
- RewriteCond %{QUERY_STRING} (.*)$
- RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$ /seoUrls.php?y=product&id=$1 [QSA,L]
- RewriteCond %{QUERY_STRING} (.*)$
- RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?$ /seoUrls.php?y=cat&id=$1 [QSA,L]
- RewriteCond %{QUERY_STRING} (.*)$
- RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$ /index.php?_a=tellafriend&productId=$1&%1 [NC,L]
- RewriteCond %{QUERY_STRING} (.*)$
- RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$ /seoUrls.php?y=saleItems [NC,L]
- ## END: Old rewrites
- RewriteRule ^products/(.*) /seoUrls.php?z=prod&c=$1 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*) /seoUrls.php?z=cat&c=$1 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/(.*)/ /seoUrls.php?z=cat&c=$2&r=1 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/$ /seoUrls.php?z=cat&c=$1&r=2 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/(.*) /seoUrls.php?z=cat&c=$2&r=3 [QSA,L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ /seoUrls.php?z=cat&c=$1&r=5 [QSA,L]