mirror of https://github.com/Chouchen/shorturl.git
htaccess much shorter and easy to handle
This commit is contained in:
parent
e46aa38636
commit
c32997721a
|
@ -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]
|
Loading…
Reference in New Issue