1
0
mirror of https://github.com/Chouchen/shorturl.git synced 2018-06-07 06:34:38 +02:00

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

View File

@ -3,11 +3,6 @@ Options +FollowSymlinks
RewriteEngine On RewriteEngine On
RewriteBase / RewriteBase /
RewriteCond %{REQUEST_FILENAME} !index.php$ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !add.php(.*)$ RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !short.php$
RewriteCond %{REQUEST_FILENAME} !404.html$
RewriteCond %{REQUEST_FILENAME} !asecretpassagereallysecret.php$
RewriteCond %{REQUEST_FILENAME} !redir.php(.*)$
RewriteCond %{REQUEST_FILENAME} !/$
RewriteRule ^(.*)$ redir.php?name=$1 [L,R] RewriteRule ^(.*)$ redir.php?name=$1 [L,R]