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:
Shikiryu 2011-02-14 16:17:21 +00:00
parent ca6589b62c
commit 15d059cb17

View File

@ -1,13 +1,8 @@
Options +FollowSymlinks 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]