.htaccess issues
Posted: Sun Jul 26, 2009 5:11 pm
I have two .htaccess files
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?
root example:
admin example:
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?
root example:
Code: Select all
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]Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ [QSA,NC,L]