Rewrite URL's Cubecart 3 (.htaccess)

greyhat

English Gent
Nov 30, 2009
853
8
0
UK
Hi there, i am struggling to rewrite the URL's on my cubecart store. i have never done this before so... Here is my .htaccess

Code:
RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule cat_([0-9]+)(\.[a-z]{3,4})?(.*)$    index.php?_a=viewCat&catId=$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule prod_([0-9]+)(\.[a-z]{3,4})?$        index.php?_a=viewProd&productId=$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule info_([0-9]+)(\.[a-z]{3,4})?$        index.php?_a=viewDoc&docId=$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule tell_([0-9]+)(\.[a-z]{3,4})?$        index.php?_a=tellafriend&productId=$1&%1 [NC]

RewriteCond %{QUERY_STRING} (.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule _saleItems(\.[a-z]+)?(\?.*)?$        index.php?_a=viewCat&catId=saleItems&%1 [NC,L]
Anything wrong with that? It is having no effecty at all. I know mod_rewrite is working because i have already redirected the non 'www' url to the 'www' version. For reference, the store is here:
http://www.fatphrocks.com

Thanks.
 


Hi, i have alredy ben trying that but i cant get the new URL's to show up 'off the bat'. All it does is 'activate' the new URL so it works only if you type it in manualy. Any ideas, i am still stuck on this?

Thanks.