rewrite conditions not working (-f, -d) - any alternatives ?

Discussion in 'Apache' started by scanreg, Jun 22, 2008.

  1. #1
    I'm trying to get the following to work but the host says that it can't because of their server config:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /subdir/test/test.php [L]

    Would there be another way to write the above that also might work?

    Many thanks :)
     
    scanreg, Jun 22, 2008 IP