-
Notifications
You must be signed in to change notification settings - Fork 99
/
.htaccess
38 lines (26 loc) · 858 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
<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^api\.
#RewriteCond %{REQUEST_URI} !^/api/$ [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule (.*) /api/$1 [L]
#RewriteCond %{HTTP_HOST} ^/api
#RewriteCond %{REQUEST_URI} !/api/$ [NC]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule (.*) /api/$1 [L]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
</IfModule>
<IfModule mod_deflate.c>
# Compression
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/javascript
</IfModule>
<IfModule mod_expires.c>
## Expire after some time
<FilesMatch "\.(jpg|jpeg|gif|png|css|woff|js|eot|svg|ttf)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
</FilesMatch>
</IfModule>