From: Iain Patterson Date: Thu, 7 Nov 2013 12:59:12 +0000 (-0500) Subject: Simpler RewriteCond rules. X-Git-Tag: 2013-11-07~4 X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=ae61a962282c09760dcd69150c6b242945bb4e2f;p=readifood.git Simpler RewriteCond rules. Simply avoid rewrites for any file which exists rather than maintaining a list of files which we explicitly don't rewrite. --- diff --git a/www/.htaccess b/www/.htaccess index e56e28a..a3be2de 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -1,5 +1,3 @@ RewriteEngine on -RewriteCond %{REQUEST_FILENAME} !/style\.css$ -RewriteCond %{REQUEST_FILENAME} !/logo\.png$ -RewriteCond %{REQUEST_FILENAME} !/login\.php$ +RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+) index.php [L]