If I load an SWF with a query string at the end, like:
object.swf?this=that
... then "this" is properly recognized as a flashvar within the flash object.
But, if I set "this" via mod_rewrite, as in:
RewriteRule ^object$ lib/object.swf?this=that [QSA,NC,L]
... then "this" is undefined.
I even wrote a little PHP script to dump the contents of $_GET (changed the rewrite target temporarily), and I'm positive that the rewrite rule is working.
Any help greatly appreciated.
mod_rewrite clarification:
To demonstrate the strangeness of the problem, let me temporarily change the rewrite target to "object.php", so the rule now reads:
RewriteRule ^object$ lib/object.php?this=that [QSA,NC,L]
I created object.php
in the /lib/
directory with the following line:
<?php echo '<pre>'.print_r($_GET, true).'</pre>'; ?>
Then, when I navigate to /object
, I get the following output:
Array
(
[this] => that
)
This demonstrates that the rewrite rule is working as expected.
Still, when I change the rewrite target back to the SWF, "this" is not recognized as a flashvar.
(I'd definitely check the rewrite log to make sure, but I don't think I have access to it on the Media Temple server I'm using.)