Flash Object赢得';t在.htaccess中输入“重写”指令后立即加载


Flash Object won't load as soon as I enter a Rewrite directive in .htaccess

我的问题是无法让RewriteRule工作。我有一个PHP页面,里面嵌入了一个flash对象。我想写一条规则来实现这一点:

http://mydomain.com/应该指出这一点:

http://mydomain.com/AdServer.php

并且闪存对象的所有参数(在查询字符串中,如果可用)也应该由RewriteRule:"复制"

http://mydomain.com/?sessionId="dfdsfsdfsd"#code=d83285e9352d69b3a694fa4c9543db83

应该这样重写:

http://mydomain.com/AdServer.php?sessionId="dfdsfsdfsd"#code=d83285e9352d69b3a694fa4c9543db83

我在.htaccess文件中写道:

RewriteEngine on

RewriteRule ^(.*)$ AdServer.php

现在,最大的问题是,flash对象根本没有加载。

有人能帮帮我吗?

事先非常感谢。

David

以下是我用来在页面中嵌入flash对象的代码:

// Version check based upon the values defined in globals
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if ( hasProductInstall && !hasRequestedVersion ) {
    // DO NOT MODIFY THE FOLLOWING FOUR LINES
    // Location visited after installation is complete if installation is required
    var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
    var MMredirectURL = window.location;
    document.title = document.title.slice(0, 47) + " - Flash Player Installation";
    var MMdoctitle = document.title;
    AC_FL_RunContent(
        "src", "playerProductInstall",
        "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
        "width", "<?=WIDTH ?>",
        "height", "<?=HEIGHT ?>",
        "align", "middle",
        "id", "AdServer",
        "quality", "high",
        "bgcolor", "#555555",
        "name", "AdServer",
        "allowScriptAccess","sameDomain",
        "type", "application/x-shockwave-flash",
        "pluginspage", "http://www.adobe.com/go/getflashplayer"
    );
} else if (hasRequestedVersion) {
    // if we've detected an acceptable version
    // embed the Flash Content SWF when all tests are passed
    AC_FL_RunContent(
            "src", "AdServer",
            "width", "<?=WIDTH ?>",
            "flashVars", "str=<?=$dataArray?>",
            "height", "<?=HEIGHT ?>",
            "align", "middle",
            "id", "AdServer",
            "quality", "high",
            "bgcolor", "#555555",
            "name", "AdServer",
            "allowScriptAccess","sameDomain",
            "type", "application/x-shockwave-flash",
            "pluginspage", "http://www.adobe.com/go/getflashplayer"
    );
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = 'Alternate HTML content should be placed here. '
    + 'This content requires the Adobe Flash Player. '
    + '<a href=http://www.adobe.com/go/getflash/>Get Flash</a>';
    document.write(alternateContent);  // insert non-flash content
  }
// -->
</script>

<noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
            id="AdServer" width="<?=WIDTH ?>" height="<?=HEIGHT ?>"
            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
            <param name="movie" value="AdServer.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#555555" />
            <param name="bgcolor" value="#555555" />
            <param name="flashVars" value="str=<?=$dataArray?>" />
            <param name="allowScriptAccess" value="sameDomain" />
            <embed src="AdServer.swf" quality="high" bgcolor="#555555"
                width="<?=WIDTH ?>" height="<?=HEIGHT ?>" name="AdServer" align="middle"
                play="true"
                loop="false"
                flashVars="str=<?=$dataArray ?>"
                quality="high"
                allowScriptAccess="sameDomain"
                type="application/x-shockwave-flash"
                pluginspage="http://www.adobe.com/go/getflashplayer">
            </embed>
    </object>
</noscript>

也许你忘了.swf在这里:

} else if (hasRequestedVersion) {
    // if we've detected an acceptable version
    // embed the Flash Content SWF when all tests are passed
    AC_FL_RunContent(
            "src", "AdServer.swf",