.htaccess 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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 ^admin-([^/]*)$ /index.php?type=admin&id=$1 [QSA,L]
  14. RewriteRule ^page-([^/]*)$ /index.php?type=page&id=$1 [QSA,L]
  15. ErrorDocument 404 /
  16. </IfModule>
  17. # File security
  18. <FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
  19. Order allow,deny
  20. Deny from all
  21. Satisfy All
  22. </FilesMatch>
  23. <FilesMatch "\.(webapp|appcache)$">
  24. FileETag None
  25. <ifModule mod_headers.c>
  26. Header unset ETag
  27. Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  28. Header set Pragma "no-cache"
  29. Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
  30. </ifModule>
  31. </FilesMatch>
  32. AddType application/x-web-app-manifest+json .webapp
  33. AddType text/cache-manifest .appcache