|
Here's what I'm trying to do with our webserver...
If a requested file does not exist and is not a directory or if it is a directory but there is no index.php file, I want to apply a specific rewrite rule.
In my httpd.conf, I've figured out the simple part of
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^js/(.*)$ /javascript/system/$1 [L, QSA]
The problem comes with the part about if the directory exists but there not being an index.php file. In that case I also want to apply the RewriteRule, but it doesn't let me do something like
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} -d && %{REQUEST_FILENAME}/index.php !-f
RewriteRule ^js/(.*)$ /javascript/system/$1 [L, QSA]
Can someone help me?
|