# Redirects
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [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 ^admin-([^/]*)$ /index.php?type=admin&id=$1 [QSA,L]
RewriteRule ^page-([^/]*)$ /index.php?type=page&id=$1 [QSA,L]
ErrorDocument 404 /
# File security
Order allow,deny
Deny from all
Satisfy All
AddType application/x-web-app-manifest+json .webapp
AddType text/cache-manifest .manifest
AddType text/cache-manifest .appcache