You have your store in a subdirectory and are using a redirect so that when folks hit your main domain they are redirected to the sub-directory??? Why do you have Zen Cart setup in this manner?? You could solve a LOT of your issues by moving Zen Cart into your site root and NOT use a sub directory at all..
Quote Originally Posted by games4gamers View Post
Hi ceon,

I really like your mod. I had some issues with my site and had to modify the .htaccess files and now I can't get back into my admin. I have 2 .htaccess files. One in the root directory (to redirect to the store) and one in the store directory. Here they are:

Root:

Code:
Options +FollowSymLinks
RewriteEngine on
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !/zencart/admin.* [NC]
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
RewriteRule ^(.*) http://www.games4gamersonline.com/zencart/$1 [R=301,L]
Store:

Code:
# ONLY rewrite URIs beginning with /zencart/
RewriteCond %{REQUEST_URI} ^/zencart/.* [NC]
# Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
# Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zencart/admin.* [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/zencart/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]
What do I need to do to fix this? Admin keeps redirecting to the home page? Thanks for any help.