Restrict htaccess action on sub-directory
Posted: Tue Nov 12, 2013 8:32 pm
Hi,
I'm running CMSMS successfully at the root level but struggling to get an ecommerce application running in a sub-directory /shop.
I have pretty urls enabled using the htaccess supplied as standard with CMSMS and I know this is causing the problems in the sub-directory - the issue goes away if I disable the CMSMS htaccess in the root.
I tried adding this line to the htaccess file to restrict any action on the sub-directory but no success:
RewriteCond %{REQUEST_URI} !^/shop
This was just before these lines:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Can anyone help with what I need to add to htaccess to exclude action on the /shop sub-directory please?
Thanks for your help,
Dave
I'm running CMSMS successfully at the root level but struggling to get an ecommerce application running in a sub-directory /shop.
I have pretty urls enabled using the htaccess supplied as standard with CMSMS and I know this is causing the problems in the sub-directory - the issue goes away if I disable the CMSMS htaccess in the root.
I tried adding this line to the htaccess file to restrict any action on the sub-directory but no success:
RewriteCond %{REQUEST_URI} !^/shop
This was just before these lines:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
Can anyone help with what I need to add to htaccess to exclude action on the /shop sub-directory please?
Thanks for your help,
Dave