forked from oxguy3/coebot-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
40 lines (25 loc) · 1.12 KB
/
.htaccess
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Options All -Indexes
ErrorDocument 400 /error.php?c=400
ErrorDocument 403 /error.php?c=403
ErrorDocument 404 /error.php?c=404
ErrorDocument 500 /error.php?c=500
RewriteEngine on
RewriteRule ^c/(\w+)/?$ /channel.php?channel=$1 [L]
RewriteRule ^c/(\w+)/(\w+)/?$ /channel.php?channel=$1&tab=$2 [L]
RewriteRule ^channel/(.*)$ /c/$1 [L,R]
# RewriteRule ^channels/(.*)$ /c/$1 [L,R]
RewriteRule ^api/(.+)$ /api.php?q=$1 [L]
RewriteRule ^commands/?$ /commands.php [L]
RewriteRule ^commands/(.+)$ /commands.php?prefix=$1 [L]
RewriteRule ^channels/?$ /chanlist.php [L]
# RewriteRule ^c/?$ /channels [L,R]
RewriteRule ^channel/?$ /channels [L,R]
RewriteRule ^help/?$ /help.php [L]
RewriteRule ^faq/?$ /help#faq [L,R,NE]
RewriteRule ^cookieman/?$ /cookieman.php [L]
RewriteRule ^logout/?$ /twitchconnect.php?logout=1 [L]
RewriteRule ^settings/?$ /settings.php [L]
RewriteRule ^oldhl/([^.]+)?$ highlights/highlight.php?arg=$1 [L]
RewriteRule ^highlights/add/([^.]+)?$ http://oldhl.coebot.tv/highlights/add/$1 [L,R]
RewriteRule ^highlights/view/(\w+)/([^.]+)?$ /c/$1#highlights/$2 [L,R,NE]
RewriteRule ^highlights/(\w+)/?$ /c/$1#highlights [L,R,NE]