.htaccess issues with sub-directory applications
Posted: Tue Nov 24, 2009 7:49 pm
I alwasy run into this issue and can never find my old threads...personal KBASE me thinks 
ANyways I have index.php in my root directory looks something like:
One of the sub-directories is 'admin' which houses various applications which also need to use .htaccess but their own so as to be compartmenaltized (I should be able to drop in an admin application not have to notify the .htaccess in root to forward requests for directory 'admin/something' to it's index.php file.
So the structure lookes like
Unfortunately the later doesn't seem to want to work as the root index.php is being invoked and looking for a resource which doesn't exist.
Anyway around this issue, considering the drop in requirements?
Cheers,
Alex
ANyways I have index.php in my root directory looks something like:
Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,NC,L]So the structure lookes like
Code: Select all
index.php
.htaccess
admin
admin/forum/.htaccess
admin/forum/index.phpAnyway around this issue, considering the drop in requirements?
Cheers,
Alex