Shortlink/.htaccess
2020-03-09 23:53:52 +08:00

14 lines
228 B
ApacheConf

Options -Indexes
order deny,allow
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
<Files ~ "^database.db">
deny from all
</Files>
RewriteEngine On
RewriteCond $1 !^(api|asset)
RewriteRule ^(\d+|\w+)$ index.php?id=$1