forked from fluaten/PlaylistRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
31 lines (23 loc) · 874 Bytes
/
.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
SetEnv SESSION_USE_TRANS_SID 0
SetEnv PHP_VER 5
AddType application/octet-stream .m3u
AddType application/octet-stream .xspf
<Files *.m3u>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
<Files *.xspf>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
RewriteEngine On
## If website url is root or subdomain, else comment with ## in front
RewriteBase /
RewriteRule ^vlc\.m3u$ /playlist.php [L]
RewriteRule ^Playlist_([^/]*)\.xspf$ /lib/vlc_xspf.php [L]
RewriteRule ^m$ /playlist.php?type=m [L]
## If website url is in a folder change to your name/path of folder, here /radio) and uncomment the ##
##RewriteBase /radio/
##RewriteRule ^vlc\.m3u$ /radio/playlist.php [L]
##RewriteRule ^Playlist_([^/]*)\.xspf$ /radio/lib/vlc_xspf.php [L]
##RewriteRule ^m$ /radio/playlist.php?type=m [L]