| Revision 222,
587 bytes
checked in by jmax, 7 years ago
(diff) |
|
updatez
|
| Line | |
|---|
| 1 | # $Id: .htaccess 141 2005-12-02 09:14:32Z sam $ |
|---|
| 2 | |
|---|
| 3 | AddDefaultCharset utf-8 |
|---|
| 4 | |
|---|
| 5 | RewriteEngine On |
|---|
| 6 | |
|---|
| 7 | # Rewrite /~foo/blah/bluh -> /index.php?u=foo |
|---|
| 8 | RewriteCond %{QUERY_STRING} ^(.+)$ |
|---|
| 9 | RewriteRule ^~([^/]+)/(.*)$ /index.php?%1&u=$1 [L] |
|---|
| 10 | RewriteRule ^~([^/]+)/(.*)$ /index.php?u=$1 [L] |
|---|
| 11 | |
|---|
| 12 | # Rewrite almost everything to /index.php |
|---|
| 13 | RewriteCond %{REQUEST_URI} !^/*index\.php.* |
|---|
| 14 | RewriteCond %{REQUEST_URI} !^/favicon\.ico |
|---|
| 15 | RewriteCond %{REQUEST_URI} !^/gnaa\.png |
|---|
| 16 | RewriteCond %{REQUEST_URI} !^/$ |
|---|
| 17 | RewriteCond %{REQUEST_URI} !^/(images|stats|flash|java|audio)/ |
|---|
| 18 | RewriteRule ^(.*) /index.php?%{QUERY_STRING} [L] |
|---|
| 19 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.