forked from pagekit/pagekit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
45 lines (31 loc) · 834 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Restricted access to files
<FilesMatch "\.(cache|db|log|po|pot|sql)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings
Options -Indexes
# URL rewrites
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* pagekit.php [L]
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>
</IfModule>
# Redirect admin URL, if rewrite is not enabled
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch (.*)(?<!index.php)\/admin$ $1/index.php/admin
</IfModule>
</IfModule>
# Media types
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
<IfModule mod_deflate.c>
AddEncoding gzip svgz
</IfModule>
</IfModule>