Quote Originally Posted by yellow1912 View Post
Try:

#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On
# Make sure to change "zencart" to the subfolder you install ZC. If you use root folder, change to: RewriteBase /
RewriteBase /

# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]

RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU

As you can see I move the 301 redirection up
Hi, yellow

Thanks for your nice add-on!
I used below htaccess in my htdocs/hotshoes/ directory but it always redirect me to 'http://www.example.com/xampp/'
#### BOF SSU
Options +FollowSymLinks -MultiViews
RewriteEngine On

RewriteBase /hotshoes/

# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]

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

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU

Would you pls point out what's wrong with the above code for me?

I use xampp to test my zen-cart locally!

Thanks in advanced,