|
Revision 1254, 1.1 kB
(checked in by jm3, 2 years ago)
|
basic success/fail authentication and logouts working!
|
| Line | |
|---|
| 1 |
php_flag asp_tags on |
|---|
| 2 |
php_flag register_globals on |
|---|
| 3 |
|
|---|
| 4 |
RewriteEngine on |
|---|
| 5 |
|
|---|
| 6 |
# OS X doesnt like this |
|---|
| 7 |
#RewriteBase / |
|---|
| 8 |
|
|---|
| 9 |
# clean url mappings |
|---|
| 10 |
|
|---|
| 11 |
RewriteRule ^lists/([a-z0-9_-]+)/([0-9]+)$ /index.php?op=view&id=$2 [L] |
|---|
| 12 |
RewriteRule ^lists/([a-z0-9_-]+)/([0-9]+)/json$ /index.php?op=json&list_id=$2 [L] |
|---|
| 13 |
RewriteRule ^lists/([a-z0-9_-]+)/([0-9]+)/javascript$ /index.php?op=javascript&list_id=$2 [L] |
|---|
| 14 |
RewriteRule ^lists/([a-z0-9_-]+)/public/([0-9]+)$ /index.php?op=view&id=$2 [L] |
|---|
| 15 |
|
|---|
| 16 |
RewriteRule ^share/public/(.*)$ /index.php?op=share&share=true&list_id=$1 [L] |
|---|
| 17 |
RewriteRule ^share/private/(.*)$ /index.php?op=share&share=false&list_id=$1 [L] |
|---|
| 18 |
|
|---|
| 19 |
RewriteRule ^create$ /index.php?op=create [L] |
|---|
| 20 |
RewriteRule ^delete/(.*)$ /index.php?op=delete&list_id=$1 [L] |
|---|
| 21 |
|
|---|
| 22 |
RewriteRule ^([0-9]+)/add$ /index.php?op=addentry&list_id=$1 [L] |
|---|
| 23 |
RewriteRule ^([0-9]+)/delete/(.*)$ /index.php?op=deleteentry&entry_id=$2&list_id=$1 [L] |
|---|
| 24 |
RewriteRule ^([0-9]+)/toggle/done/(.*)$ /index.php?op=toggle&done=true&id=$2&list_id=$1 [L] |
|---|
| 25 |
RewriteRule ^([0-9]+)/toggle/undone/(.*)$ /index.php?op=toggle&done=false&id=$2&list_id=$1 [L] |
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
RewriteRule ^logout$ /login.php?op=logout |
|---|