有人能帮助我吗?我需要正则表达式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]
答案 0 :(得分:1)
我想
RewriteRule ^([a-z]{2})/([0-9]{6})/?$ includes/redirect.php?loc=$1&ref=$2 [L]