I'm attempting to use mod_rewrite to clean up the URL's to a flash video player. First, here is the original URL that I'm trying to rewrite to:
library/player.swf?path=path-to-file.flv
The above URL works perfectly fine when I access it directly. I have coded the swf to automatically grab the path parameter and play the video. No problems there. Now here is my attempted rewrite rule:
RewriteRule ^player/(.+)$ library/player.swf?path=$1 [QSA,L]
When visiting the url player/path-to-file.flv, I get the swf but no video loads. I set up a popup window in the flash to tell me the path name for debugging purposes, and it looks like the path isn't being passed at all.
On the other hand if I use the exact same rule but point it to a test.php instead of player.swf, the test.php file is able to echo out the parameter.
So the question comes down to, am I doing something incorrectly or is it impossible to send a query string to a swf via mod_rewrite?