-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
46 lines (35 loc) · 1.69 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
38
39
40
41
42
43
44
45
46
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^$ app/ [L]
# RewriteRule ((?s).*) app/$1 [L]
#</IfModule>
DirectoryIndex index.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} api/(.*)$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ((?s).*) app/$1 [L]
RewriteCond %{REQUEST_URI} task/([0123456789]*)/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ task/index.html [L]
RewriteCond %{REQUEST_URI} report/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ task/index.html [L]
RewriteCond %{REQUEST_URI} state/([0123456789]*)/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ index.html [L]
RewriteCond %{REQUEST_URI} state/([0123456789]*)/tag/([0123456789]*)/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ index.html [L]
RewriteCond %{REQUEST_URI} user/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ index.html [L]
RewriteCond %{REQUEST_URI} form/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ form/compactForm.html [L]
RewriteCond %{REQUEST_URI} form-utair/$
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|gif|png|css|zip|doc|php|js|pdf|txt|ico|djvu)$
RewriteRule ^(.*)$ form-utair/compactForm.html [L]
</IfModule>