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:
parent
ca6589b62c
commit
15d059cb17
11
.htaccess
11
.htaccess
@ -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]
|
Loading…
Reference in New Issue
Block a user