title: How to play redirected m3u8 stream on kodi/xbmc?
body: <p>I am having issues with playing redirected .m3u8 streams in XBMC/kodi. I have the following php script that i call it like this :</p>
  
  <pre><code>http://www.MyWebsite.com/getStream.php?channel=12
  </code></pre>
  
  <p>if i use the above link in kodi/xbmc it never plays it ! could any one tell me how to fix this issue and allow xbmc/kodi to play links like above? Should i add extra header?</p>
  
  <pre><code>&lt;?
  
  //rest of code that gets the actual stream url
  $a="http://someRemoteWebsite.com/hls/stream12.m3u8?token=234324213243";
  header("Location: " . $a);
  ?&gt;
  </code></pre>