【发布时间】:2012-01-31 12:26:29
【问题描述】:
为什么这条规则不返回带有字符的斜线?
RewriteRule ^test/(.+)/(.+)/(.+)/?$ test.php?one=$1&two=$2&three=$3
例如在这个网址中
mysite.com/test//one///two////three///
它会返回
$1='one'
$2='two'
$3='three'
但我希望它返回
$1='/one'
$2='//two'
$3='///three///'
我也试过^posts/{1}(.+)/{1}(.+)/{1}(.+)/?$,但也没有用...
我没有想到其他任何事情。任何人都可以帮忙吗?
提前致谢
【问题讨论】:
标签: regex .htaccess mod-rewrite slash