Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
URL重写2.0不排除子文件夹_Url_Iis_Filter_Rewrite - Fatal编程技术网

URL重写2.0不排除子文件夹

URL重写2.0不排除子文件夹,url,iis,filter,rewrite,Url,Iis,Filter,Rewrite,有人能帮我解决我的问题吗 我正在使用IIS 7.5和URL Rewrite 2.0上的ASPX文件在任何访问条件下获取SSL: www.somedomain.com-> www.somedomain.com/mypage.aspx-> 它的功能非常完美。但是,由于页面加载/播放了一些MP3/OGG文件,我注意到: 1-如果页面是在SSL中执行的,则MP3不会在某些设备(Androids/iPhone/iPad移动设备)中播放 2-如果页面在没有SSL的情况下执行,则正常情况下会发生,100% 因

有人能帮我解决我的问题吗

我正在使用IIS 7.5和URL Rewrite 2.0上的ASPX文件在任何访问条件下获取SSL:

www.somedomain.com->

www.somedomain.com/mypage.aspx->

它的功能非常完美。但是,由于页面加载/播放了一些MP3/OGG文件,我注意到:

1-如果页面是在SSL中执行的,则MP3不会在某些设备(Androids/iPhone/iPad移动设备)中播放

2-如果页面在没有SSL的情况下执行,则正常情况下会发生,100%

因此,我尝试在URL-REWRITE中过滤MP3/OGG文件(以及PNG/JPG图像),以避免它们在SSL下被访问。 我的过滤器是:

<add input="{REQUEST_URI}" pattern="(png|jpg|mp3|ogg)" negate="true" />
<add input="{HTTPS}" pattern="^OFF$" />
如何避免这种行为?我不想把这些文件(MP3、OGG、JPG、PNG)放在另一个域中,以避免URL重写来捕获它们。我需要他们在同一个主项目,并在其子文件夹(音频和图像文件夹)之一

如何创建入站规则以真正完全丢弃这些文件? 注意:如果我使用

     <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

它不播放(或加载)太多

我非常感谢你为帮助我解决那个问题所做的努力。 亲切问候,, 大卫

     <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />