htaccess重写 - php编码的网址

时间:2015-10-28 10:08:21

标签: apache .htaccess mod-rewrite url-rewriting urlencode

我的网址是     foo.com/req/page/id

其中id已加密,     foo.com/req/page/C5JN38LD2OIyuQWCQ0hC3Jn+5FDvgdS1V478/7/UAZU=

编码时  http://foo.com/req/page/C5JN38LD2OIyuQWCQ0hC3Jn%2B5FDvgdS1V478%2F7%2FUAZU%3D

并重写规则,

RewriteRule ^req/([a-zA-Z0-9_-]+)/(.*)$ index.php?page=$1&id=$2 [B]

当编码的网址包含%

时,重写不会发生

0 个答案:

没有答案
相关问题