1 in the root document that accepts request for the front end application and another in the subdirectory 'admin' the former is conflicting with the 'admin' version I believe, how do I prevent/block the directory 'admin' from being interpreted by the root .htaccess?
RewriteEngine on
RewriteBase /
SetEnv TEXO_WWW_DEFAULT "www"
# Redirect access to non-www to www version -- apache have virtual host mappings for both non-www and www for this to work as expected
RewriteCond %{HTTP_HOST} ^demosite.com [NC]
RewriteRule ^(.*)$ http://www.demosite.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,NC,L]
EDIT | Whats actually happening is that the root .htaccess is accepting requests for everything, like I want it too (except for existing files/folders). I can access the 'admin' directory as expected but whenever I access something in the admin, it's the root .htaccess thats delivering the request, which is not what I need.
I need the .htaccess in the 'admin' directory to deliver all sub-requests to it's index.php not the root version.
In this case the proper admin/index.php is invoked but I need it so anything under admin is handled by index.php except files that already exists like images, etc
just noticed you are missing the index.php directive in your admin htaccess. They way it works, those files stack over each other, and since you aren't overriding the original one it goes to the same index.php.
In your admin htaccess direct it to: