|
Revision 14349, 1.1 kB
(checked in by kumatch, 5 years ago)
|
|
Added some rewrite rules for the user contents resources.
|
| Line | |
|---|
| 1 | RewriteEngine on |
|---|
| 2 | |
|---|
| 3 | RewriteBase / |
|---|
| 4 | RewriteRule ^signup/?$ /signup.php [L] |
|---|
| 5 | RewriteRule ^account/create/?$ /signup.php [L] |
|---|
| 6 | RewriteRule ^account/register/([a-f0-9]+)$ /register.php?key=$1 [L] |
|---|
| 7 | |
|---|
| 8 | RewriteRule ^login/?$ /login.php [L] |
|---|
| 9 | RewriteRule ^sessions/?$ /login.php [L] |
|---|
| 10 | RewriteRule ^logout/?$ /logout.php [L] |
|---|
| 11 | |
|---|
| 12 | RewriteRule ^home/?$ /status.php?view=home&%{QUERY_STRING} [L] |
|---|
| 13 | RewriteRule ^replies/?$ /status.php?view=replies&%{QUERY_STRING} [L] |
|---|
| 14 | RewriteRule ^account/archive/?$ /status.php?view=archive&%{QUERY_STRING} [L] |
|---|
| 15 | RewriteRule ^public_timeline/?$ /status.php?view=public_timeline&%{QUERY_STRING} [L] |
|---|
| 16 | RewriteRule ^status/update/?$ /status.php [L] |
|---|
| 17 | |
|---|
| 18 | RewriteRule ^account/settings/?$ /account/settings.php [L] |
|---|
| 19 | RewriteRule ^account/password/?$ /account/password.php [L] |
|---|
| 20 | RewriteRule ^account/picture/?$ /account/picture.php [L] |
|---|
| 21 | |
|---|
| 22 | RewriteRule ^([0-9a-zA-Z_]{1,20})/?$ /user/archive.php?userName=$1&%{QUERY_STRING} [L] |
|---|
| 23 | RewriteRule ^([0-9a-zA-Z_]{1,20})/friends/?$ /user/friends.php?userName=$1 |
|---|
| 24 | RewriteRule ^([0-9a-zA-Z_]{1,20})/followers/?$ /user/followers.php?userName=$1 |
|---|
| 25 | |
|---|
| 26 | ErrorDocument 404 /errors/404.html |
|---|