php - htaccess file serve programming -


I am hosting videos mostly for non-smart phones, but giving better quality videos for smart phones Want to The way I am doing this is watching YouTube Agent with HTACAC file because most non-smart phones keep in mind JavaScript and PHP. My problem is that I have an HTAC file for each video, because I do not know what the video people are trying to see. Is there a better way to do this? Thanks!

Create a sensible, normalized file / folder structure that allows you to apply normalized rewrite rules . Example:

  Video / Low / abc.mp4 def.mp4 ... high / abc.mp4 def.mp4 ...   

With rewrite rules as:

  example.com/videos/abc.mp4   

:

 < Code> RewriteCond & lt; Is mobile user & gt; RewriteRule Video /(.*) Video / High / $ 1 [L] Revert Raul Video /(.*) Video / Low / $ 1    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -