I need to provide a static url to a client, eg. http://domain.com/video.mp4. However this URL needs to provide a random video from a selection of 5 videos each time it is accessed.
Is this possible using PHP and mod_rewrite? Or some other way?
Thanks
You may be able to provide a url to a PHP script (http://domain.com/video.php), which then sets its
content-typeheader to the type of a video and then randomly reads out a file usingreadfile.I don’t think you need to use mod_rewrite in this case.