-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
30 lines (24 loc) · 1.01 KB
/
.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
# php -- BEGIN cPanel-generated handler, do not edit
# “ea-php56” パッケージを既定の “PHP” プログラミング言語として設定します。
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE font/opentype font/eot font/truetype application/font-woff application/font-woff2
</IfModule>
<FilesMatch "\.(?i:(otf|ttf|eot|woff|woff2)?)$">
Header set Access-Control-Allow-Origin *
</FilesMatch>
AddEncoding gzip .svgz
Allow from all
Header set Strict-Transport-Security "max-age=315360000; includeSubDomains; preload"
ExpiresDefault A25920000
Header set Access-Control-Allow-Origin *
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cdn.suiranfes.com$
RewriteCond %{HTTPS} off
RewriteRule ^(.*) https://cdn.suiranfes.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html