htaccess much shorter and easy to handle

This commit is contained in:
Chouchen 2011-02-14 16:17:21 +00:00
parent e46aa38636
commit c32997721a
1 changed files with 3 additions and 8 deletions

View File

@ -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]