This repository was archived by the owner on Oct 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.htaccess
More file actions
36 lines (36 loc) · 1.28 KB
/
.htaccess
File metadata and controls
36 lines (36 loc) · 1.28 KB
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
# Redirects
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{ENV:REDIRECT_STATUS} ^.
RewriteRule .* - [L]
RewriteRule ^.+/page-([^/]*)$ / [R=301,L]
RewriteRule ^\~([^/]*)$ /index.php?type=user&id=$1 [QSA,L]
RewriteRule ^\+([^/]*)$ /index.php?type=group&id=$1 [QSA,L]
RewriteRule ^\!([^/]*)$ /index.php?type=issue&id=$1 [QSA,L]
RewriteRule ^scrum-([^/]*)$ /index.php?type=scrum&id=$1 [QSA,L]
RewriteRule ^project-([^/]*)$ /index.php?type=project&id=$1 [QSA,L]
RewriteRule ^admin-([^/]*)$ /index.php?type=admin&id=$1 [QSA,L]
RewriteRule ^page-([^/]*)$ /index.php?type=page&id=$1 [QSA,L]
RewriteRule ^message-([^/]*)$ /index.php?type=message&id=$1 [QSA,L]
ErrorDocument 404 /
</IfModule>
# File security
<FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
<FilesMatch "\.(webapp|appcache)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</FilesMatch>
AddType application/x-web-app-manifest+json .webapp
AddType text/cache-manifest .appcache