.htaccess重写所有内容,无一例外

.htaccess重写所有内容,无一例外,.htaccess,mod-rewrite,.htaccess,Mod Rewrite,我想将所有请求重定向到一个目录,并指向其index.php 在文件夹/wp content/themes/sometheme/qr/中,我放置了以下内容: 据我所知,这应该将所有内容重写到qt文件夹中的index.php 当我在浏览器中打开/wp content/themes/sometheme/qr/test/sometest.txt时,正如预期的那样,执行index.php。但是对于url/wp content/themes/sometheme/qr/http%3A%2F%2Fwww.eam

我想将所有请求重定向到一个目录,并指向其index.php

在文件夹
/wp content/themes/sometheme/qr/
中,我放置了以下内容:

据我所知,这应该将所有内容重写到qt文件夹中的
index.php

当我在浏览器中打开
/wp content/themes/sometheme/qr/test/sometest.txt
时,正如预期的那样,执行
index.php
。但是对于url
/wp content/themes/sometheme/qr/http%3A%2F%2Fwww.eample.com%2Fwp content%2Fuploads%2F2014%2F03%2Fdemo.vcf
我没有收到404错误


这让我有点困惑,我希望
*
能够完全匹配所有可能的url。为什么它没有被重定向?

好的,我想我找到了答案。显然,我的Apache对url中的
%2F
不满意,甚至在调用任何模块之前就将其视为无效而丢弃

据我所知,解决这个问题的唯一方法是不编码参数,因此我的url现在看起来像这样:

/wp-content/themes/sometheme/qr/http://www.eample.com/wp-content/uploads/2014/03/demo.vcf

在我看来,这个URL看起来更加错误,它的代码> http://< /COD>卡在中间。所以如果有人知道怎么解决这个问题,现在就开枪

/wp-content/themes/sometheme/qr/http://www.eample.com/wp-content/uploads/2014/03/demo.vcf