modrewrite正则表达式

时间:2011-03-22 21:52:06

标签: regex mod-rewrite

有人能帮助我吗?我需要正则表达式2变量:

locale = 2个字母,参考= 6位

# http://www.site.com/fr/123456/
RewriteRule ^([a-z]{2})/?$([0-9]{6})/?$ includes/redirect.php?loc=$1&ref=$2 [L]

1 个答案:

答案 0 :(得分:1)

我想

RewriteRule ^([a-z]{2})/([0-9]{6})/?$ includes/redirect.php?loc=$1&ref=$2 [L]