.htaccess 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Redirects
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{ENV:REDIRECT_STATUS} 200
  8. RewriteRule .* - [L]
  9. RewriteRule ^\~([^/]*)$ /index.php?type=user&id=$1 [QSA,L]
  10. RewriteRule ^\+([^/]*)$ /index.php?type=group&id=$1 [QSA,L]
  11. RewriteRule ^\!([^/]*)$ /index.php?type=issue&id=$1 [QSA,L]
  12. RewriteRule ^scrum-([^/]*)$ /index.php?type=scrum&id=$1 [QSA,L]
  13. RewriteRule ^project-([^/]*)$ /index.php?type=project&id=$1 [QSA,L]
  14. RewriteRule ^admin-([^/]*)$ /index.php?type=admin&id=$1 [QSA,L]
  15. RewriteRule ^page-([^/]*)$ /index.php?type=page&id=$1 [QSA,L]
  16. ErrorDocument 404 /
  17. </IfModule>
  18. # File security
  19. <FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
  20. Order allow,deny
  21. Deny from all
  22. Satisfy All
  23. </FilesMatch>
  24. <FilesMatch "\.(webapp|appcache)$">
  25. FileETag None
  26. <ifModule mod_headers.c>
  27. Header unset ETag
  28. Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  29. Header set Pragma "no-cache"
  30. Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
  31. </ifModule>
  32. </FilesMatch>
  33. AddType application/x-web-app-manifest+json .webapp
  34. AddType text/cache-manifest .appcache