-
Notifications
You must be signed in to change notification settings - Fork 48
/
htaccess.txt
25 lines (20 loc) · 879 Bytes
/
htaccess.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Make this the default page served
# DirectoryIndex music.php index.php index.htm index.html
# disable directory browsing
# Options All -Indexes
# Serve the songindex for "file not found" error
# ErrorDocument 404 /music.php
<IfModule mod_rewrite.c>
### REWRITES ###
RewriteEngine On
RewriteBase /
RewriteRule ^songbook/?$ /music.php?action=songbook [L,QSA]
RewriteRule ^songbook/(.*)$ /music.php?action=song&song=$1 [L,QSA]
RewriteRule ^source/(.*)$ /music.php?action=source&song=$1 [L,QSA]
RewriteRule ^edit/(.*)$ /music.php?action=edit&song=$1 [L,QSA]
RewriteRule ^reindex/?$ /music.php?action=reindex [L,QSA]
RewriteRule ^login/?$ /music.php?action=login [L,QSA]
RewriteRule ^logout/?$ /music.php?action=logout [L,QSA]
RewriteRule ^ajaxnewsong/?$ /music.php?action=ajaxnewsong [L,QSA]
RewriteRule ^ajaxupdatesong/?$ /music.php?action=ajaxupdatesong [L,QSA]
</IfModule>