
Originally Posted by
Nigel Bywater
Hi, newbie here. My client has version 1.3.8a running in a subdirectory (/zencart) but it now requires a new design which i have been brought in to do on the latest ZC version.
I've never worked with ZC and the previous designer just left it untouched for years. He has two identical .htaccess files - one in root and one in /zencart. When i install the latest ZC version in the new subfolder (/zencart2) and run the install i get an infinate loop preventing me from installing in that folder.
The htaccess contents are here:
*********
AddHandler x-mapp-php4 .php
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*THECLIENTSWEBSITE.co.uk$ [NC]
RewriteRule ^(.*)$ http://THECLIENTSWEBSITE.co.uk/zencart$1 [R=301,L]
AddType text/x-component .htc
*********
can anyone help me get around this so i can run an install? Thanks guys.
Need to evaluate that the requested directory is not your new "temp" directory.
Besides this, the store should be just in the root directory instead of being seen by visitors as being in a sub-directory.
Additional rewrite rule needed:
Code:
RewriteCond %{REQUEST_URI} !^/zencart2 [NC]
Making your .htaccess:
Code:
AddHandler x-mapp-php4 .php
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*THECLIENTSWEBSITE.co.uk$ [NC]
RewriteCond %{REQUEST_URI} !^/zencart2 [NC]
RewriteRule ^(.*)$ http://THECLIENTSWEBSITE.co.uk/zencart$1 [R=301,L]
AddType text/x-component .htc