Jump to content

htaccess file settings if store is in /store folder


livetech

Recommended Posts

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 ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...