|
@@ -2,12 +2,16 @@
|
|
|
<IfModule mod_rewrite.c>
|
|
|
RewriteEngine On
|
|
|
RewriteBase /
|
|
|
- RewriteRule ^\~([^/]*)$ /index.php?type=user&id=$1 [L]
|
|
|
- RewriteRule ^\+([^/]*)$ /index.php?type=group&id=$1 [L]
|
|
|
- RewriteRule ^\!([^/]*)$ /index.php?type=issue&id=$1 [L]
|
|
|
- RewriteRule ^([^/]*)/([^/]*)$ /index.php?type=$1&id=$2 [L]
|
|
|
- RewriteRule ^([^/]*)/([^/]*)$ /index.php?type=$1&id=$2 [L]
|
|
|
- RewriteRule ^install/([^/]*)$ /install/index.php?id=$1 [L]
|
|
|
+ RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
+ RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
+ RewriteCond %{ENV:REDIRECT_STATUS} 200
|
|
|
+ RewriteRule .* - [L]
|
|
|
+ RewriteRule ^\~([^/]*)$ /index.php?type=user&id=$1 [QSA,L]
|
|
|
+ RewriteRule ^\+([^/]*)$ /index.php?type=group&id=$1 [QSA,L]
|
|
|
+ RewriteRule ^\!([^/]*)$ /index.php?type=issue&id=$1 [QSA,L]
|
|
|
+ RewriteRule ^([^/]*)/([^/]*)$ /index.php?type=$1&id=$2 [QSA,L]
|
|
|
+ RewriteRule ^([^/]*)/([^/]*)$ /index.php?type=$1&id=$2 [QSA,L]
|
|
|
+ RewriteRule ^install/([^/]*)$ /install/index.php?id=$1 [QSA,L]
|
|
|
</IfModule>
|
|
|
# File security
|
|
|
<FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp)$">
|