forked from PhileCMS/Phile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
32 lines (27 loc) · 882 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
#####################################
# Browser cache for static files
#####################################
<FilesMatch "\.(js|css|jpg|gif|png|jpeg)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 7 days"
</IfModule>
FileETag MTime Size
</FilesMatch>
#####################################
# Redirect stuff
#####################################
<IfModule mod_rewrite.c>
# Enable URL rewriting
RewriteEngine On
# Change this path, if you have installed PhileCMS in a subdirectory of the website root.
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]
</IfModule>
#####################################
# directory listings are disabled
#####################################
Options -Indexes