File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ # www to non-www
2
+ RewriteEngine On
3
+ RewriteBase /
4
+ RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
5
+ RewriteRule ^(.*)$ http://%1/$1 [R=301 ,L]
6
+
7
+ # Handle deep links
1
8
RewriteEngine on
2
9
RewriteCond %{REQUEST_FILENAME} !-d
3
10
RewriteCond %{REQUEST_FILENAME} !-f
4
11
RewriteRule . / [L]
5
12
RewriteRule (.+)\.md /
6
13
14
+ # Font handling
7
15
AddType 'application/x-font-woff' .woff
8
16
9
17
# HTTPS to HTTP
@@ -12,6 +20,6 @@ RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
12
20
13
21
# BEGIN GZIP
14
22
<ifmodule mod_deflate.c>
15
- AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/x-font-woff application/octet-stream
23
+ AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/json application/ javascript application/x-font-woff application/octet-stream
16
24
</ifmodule>
17
25
# END GZIP
You can’t perform that action at this time.
0 commit comments