-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
37 lines (26 loc) · 1.02 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
31
32
33
34
35
36
37
Options FollowSymLinks SymLinksIfOwnerMatch
AddDefaultCharset utf-8
AddType application/vnd.ms-fontobject eot
AddType font/opentype otf
AddType font/truetype ttf
AddType application/font-woff woff
AddType video/webm webm
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteCond %{REQUEST_URI} !^/(dist|img|snippets)
RewriteRule ^(/)?(.+)/$ snippets/$2.html [L]
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteCond %{REQUEST_URI} !^/(dist|img|snippets)
RewriteRule ^(/)?([.a-zA-Z0-9-/]+) snippets/$2.html [L]
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteCond %{REQUEST_URI} !^/(dist|img|snippets)
RewriteRule ^ snippets/1.html [L]
RewriteCond %{REQUEST_URI} !^/(dist|img|snippets)
RewriteRule ^/?$ index.html [QSA,L]
RewriteCond %{REQUEST_URI} !^/(dist|img|snippets)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.+(dist|img|snippets)(/(.*))? $1$2 [QSA,N]
RewriteCond %{REQUEST_URI} !^/(dist|img|snippets)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^[.a-zA-Z0-9-]+(/(.*))? / [QSA,N]