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]
Bookmarks