Hello,
I have a modx site in the root of my site and another application (activeCollab) in a subdirectory of my site, both CMS and app are completely independent of each other.
dev.mydomain.com -- my cms site
dev.mydomain.com/app -- my other app
The problem im having is that i want to have friendly URLs working on my app, and it seems to work (as i see the clean urls in the address bar), but i get a modx 404 page when i try to access a page within the app. I suspect there is some conflicts with both the modx and app’s htaccess file.
Can someone who is more knowledgable with htaccess show me how to make modx play well with other apps?
Here is modx’s friend url related htaccess:
#Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Here is the other app’s htacess file, within the the app’s subdirectory (/app):
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^projects_icons/(.*)$ public/projects_icons/$1 [L]
RewriteRule ^avatars/(.*)$ public/avatars/$1 [L]
RewriteRule ^logos/(.*)$ public/logos/$1 [L]
RewriteRule ^thumb.php$ public/thumb.php [L]
RewriteRule ^captcha.php$ public/captcha.php [L]
RewriteRule ^$ public/index.php [L]
RewriteRule ^(.*)$ public/index.php?path_info=$1 [L]
</IfModule>
Thanks
Edit: also i tried to exclude the app’s folder on this line:
RewriteRule ^(manager|assets|app) - [L]
But it still doesnt work...