livetech Posted February 27, 2012 Share Posted February 27, 2012 Hi All, Trying to get the SEO URL's working and having an issue with a Server configuration error etc. Mod_rewrite is enabled on the server I am thinking it is because the Cubecart is installed in a /store foler - not the root. This is the code that the system wants me to have in the htaccess file ## Activate the mod_rewrite Engine RewriteEngine On 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] How would this be changed if the store was in /store ? Quote Link to comment Share on other sites More sharing options...
Robsta Posted February 27, 2012 Share Posted February 27, 2012 The .htaccess file should be in the same directory as the CubeCart files. Quote Link to comment Share on other sites More sharing options...
livetech Posted February 28, 2012 Author Share Posted February 28, 2012 Hi Robsta, Thanks for the replay - I was uploading the generated code to the /store folder - but was getting errors. However - I used the "Install .htacces" button - and all seems to be working.... :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.