Try this
Code:
RewriteEngine On
RewriteBase /
# 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} !^/sysop [NC]
# Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors [NC]
# Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]
# Don't rewrite blog directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
# Handle all other URIs using Zen Cart (index.php)
RewriteRule .* index.php?%{QUERY_STRING} [L]
# Rewrite blog directory to display WP inside zencart, but exclude the blog-backend directory because that's my actual WP directory
RewriteCond %{REQUEST_URI} !^/blog-backend [NC]
RewriteRule ^blog(.*)$ index.php?main_page=blog$1 [E=VAR1:$1,QSA,L]
~Melanie
Bookmarks