| Revision 152,
753 bytes
checked in by sam, 7 years ago
(diff) |
- don't redirect on rewrite
|
-
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 | #RewriteCond %{QUERY_STRING} ^(.+)$ |
|---|
| 13 | #RewriteRule ^blog/(rss|rss20|rss20.xml)$ /blog/index.html?%1&mode=rss20 [L] |
|---|
| 14 | |
|---|
| 15 | RewriteCond %{REQUEST_URI} !^/*index\.php.* |
|---|
| 16 | RewriteCond %{REQUEST_URI} !^/favicon\.ico |
|---|
| 17 | RewriteCond %{REQUEST_URI} !^/gnaa\.png |
|---|
| 18 | RewriteCond %{REQUEST_URI} !^/$ |
|---|
| 19 | RewriteCond %{REQUEST_URI} !^/(images|stats|flash).* |
|---|
| 20 | RewriteRule ^(.*) /index.php?%{QUERY_STRING} [L] |
|---|
| 21 | |
|---|
| 22 | #RewriteCond %{REQUEST_URI} !^/~.* |
|---|
| 23 | #RewriteCond %{REQUEST_URI} !^/~ |
|---|
| 24 | #RewriteRule ^/.* /index.php [R=permanent,L] |
|---|
| 25 | |
|---|
| 26 | #ErrorDocument 404 /index.php |
|---|
| 27 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.