.htaccess 1.3 KB

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