Hi,
I’ve installed modx cms into magento but when I try to navigate into modx’s content I lose Magento template.
I think the trouble is Rewrite URL in .htaccess file.
My installation is:
mysite.com <-- Magento’s Folder
mysite.com/modx <-- Modx’s Folder
When I browse Magento content all it’s right, but when I try to navigate into internal CMS (modx) I lose the magento template... OK...?
I’d like to rewrite URL from
mysite.com/modx/homepage.html to
mysite.com/homepage.html.
My .htaccess into modx folder is:
****
# For full documentation and other suggested options, please see
#
http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
Options +FollowSymlinks
RewriteEngine On
RewriteBase /modx
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
#RewriteCond %{HTTP_HOST} .
#RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
#RewriteRule (.*)
http://www.example.com/$1 [R=301,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]
###These are my test’s RewriteRule:
RedirectMatch 301 ^(modx)$
http://mysite.com/
RewriteRule ^modx$ mysite.com/ [NC,R=301]
RewriteRule ^modx/(.*)$
http://mysite.com/$1
# Reduce server overhead by enabling output compression if supported.
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
****
Please, help me!