.htaccess 1.2 KB

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