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
Post a Comment