.htaccess 765 B

12345678910111213141516171819202122
  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=template&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>