【发布时间】:2009-09-02 02:16:36
【问题描述】:
以下 url 重写工作正常,但不会重定向到新 url。
RewriteRule ^test-(.*)-(.*)\.html$ /test.php?&abc=$1&xyz=$2/ [L]
【问题讨论】:
标签: php apache mod-rewrite
以下 url 重写工作正常,但不会重定向到新 url。
RewriteRule ^test-(.*)-(.*)\.html$ /test.php?&abc=$1&xyz=$2/ [L]
【问题讨论】:
标签: php apache mod-rewrite
如果您想强制将浏览器重定向到该 URL,您需要使用 R 标志:
RewriteRule ^test-(.*)-(.*)\.html$ /test.php?&abc=$1&xyz=$2/ [R,L]
【讨论】: