From 15d059cb171c7cb546457e2f744ee592cac56ba2 Mon Sep 17 00:00:00 2001 From: Shikiryu Date: Mon, 14 Feb 2011 16:17:21 +0000 Subject: [PATCH] htaccess much shorter and easy to handle --- .htaccess | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.htaccess b/.htaccess index 6441c58..0355f91 100644 --- a/.htaccess +++ b/.htaccess @@ -1,13 +1,8 @@ Options +FollowSymlinks RewriteEngine On - + RewriteBase / -RewriteCond %{REQUEST_FILENAME} !index.php$ -RewriteCond %{REQUEST_FILENAME} !add.php(.*)$ -RewriteCond %{REQUEST_FILENAME} !short.php$ -RewriteCond %{REQUEST_FILENAME} !404.html$ -RewriteCond %{REQUEST_FILENAME} !asecretpassagereallysecret.php$ -RewriteCond %{REQUEST_FILENAME} !redir.php(.*)$ -RewriteCond %{REQUEST_FILENAME} !/$ +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ redir.php?name=$1 [L,R] \ No newline at end of file