Quote Originally Posted by delia View Post
I never figured on an htaccess problem but here it is. This is the first time I've not had a cart in the root and I have never had a problem with this before.

Here is the folder htaccess:
Code:
RewriteEngine On

# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/store/ [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/store/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/store/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
The root also has an htaccess file and besides the 301 redirects, it reads (with xxxx subbing for domain name):
Code:
RewriteEngine on

RewriteCond %{HTTP_HOST} ^([^.:]+\.)*xxxx\.net\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^([^.:]+\.)*engis\.org\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^xxxx.com
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [R=301,L]
Anybody see a problem with this? I can't even get into the store directory with this htaccess setup
Hi you need to create a htaccess, and it must be in the file placed in the same directory as the Zen Cart installation's
index.php file.
For example wherever your zencart files are put the .htaccess file there.

admin
cache
docs
download
editors

Remove the one in your root, and you should be OK if your .htaccess file is something like this. Back this one up before removing it just in case.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteCond %{REQUEST_URI} !^/ADMINFOLDERNAME [NC]
RewriteCond %{REQUEST_URI} !^/editors [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

RewriteEngine On

# ONLY rewrite URIs beginning with /shop/
RewriteCond %{REQUEST_URI} ^/store/ [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])
RewriteCond %{REQUEST_URI} !\.[a-z]{2,5}$ [NC]
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/store/admin [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/store/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]