| Revision 176,
540 bytes
checked in by sam, 7 years ago
(diff) |
|
|
-
Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 | # $Id$ |
|---|
| 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)/ |
|---|
| 18 | RewriteRule ^(.*) /index.php?%{QUERY_STRING} [L] |
|---|
| 19 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.