# Redirects
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 /
# File security
Order allow,deny
Deny from all
Satisfy All
FileETag None
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"
AddType application/x-web-app-manifest+json .webapp
AddType text/cache-manifest .appcache