-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.htaccess
More file actions
executable file
·43 lines (33 loc) · 1.07 KB
/
.htaccess
File metadata and controls
executable file
·43 lines (33 loc) · 1.07 KB
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
Options +FollowSymLinks +ExecCGI
#<IfModule mod_headers.c>
#Header set Strict-Transport-Security "max-age=0; includeSubDomains;" env=HTTPS
#</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteCond %{REQUEST_URI} !\t\/.+$
#RewriteRule .* - [L]
RewriteRule ^(themes|upload|img)($|/) - [L]
# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
php_value upload_max_filesize 100M
php_value post_max_size 100M
<IfModule mod_php5.c>
php_value max_execution_time 3000
</IfModule>
<IfModule mod_expires.c>
<FilesMatch "\.(jpe?g|png|gif|js|css)$">
ExpiresActive On
ExpiresDefault "access plus 1 week"
</FilesMatch>
</IfModule>