I want http://www.mywebsite.com/play.m3u8?id=1234 to redirect to http://www.mywebsite.com/play.php?id=1234(play.php will produce the actual m3u8 url) using .htaccess rewrites rules! (In another word I want to "package" it into a fake .m3u8 file so that xbmc/kodi would process it)
Could any one show me how i create such .htaccess file. Thanks in advance.
You can use that in your .htaccess
:
RewriteEngine on
RewriteRule \.m3u8$ /play.php [NC,L]