htaccess用于swf文件

时间:2012-04-13 11:21:55

标签: .htaccess mod-rewrite

htaccess是否适用于接受变量的swf文件?

我有这个swf网址...

http://subdom.domain.tld/subfolder/live.swf?stream=rtmp://stream.domain.com/application&provider=rtmp&file=streamname&autostart=true

我希望它被重写为 http://subdom.domain.tld/subfolder/assignedname/

到目前为止,这是我在.htaccess文件上写的

RewriteEngine On

RewriteRule ^kwt/?$ live.swf?stream=rtmp://stream.domain.com/application&provider=rtmp&file=streamname&autostart=true [NC,L]

它似乎重写为swf文件,因为swf正在显示,但由于某种原因,该变量无法识别。即使自动播放变量在RewriteRule中设置为true也不会自动播放。

我的代码有问题,或者无法在swf文件中完成吗?

1 个答案:

答案 0 :(得分:0)

你不能这样做,因为Flash播放器会查看查询字符串中变量的“显示”URL,而重写的“干净”URL则没有这些。

相关问题