开发者

rewrite rule with 3 parameters

开发者 https://www.devze.com 2023-02-02 08:23 出处:网络
How do i use rewrite rule with 3 parameter开发者_开发百科es? like: RewriteRule example/$/$/$ example.php?x=$1&y=$2&z=$3

How do i use rewrite rule with 3 parameter开发者_开发百科es? like:

RewriteRule example/$/$/$ example.php?x=$1&y=$2&z=$3

thank you


Ok ;

i found the answer :

RewriteRule ex/([^/]+)/([^/]+)/([^/]+) ex.php?x=$1&y=$2&z=$3 [L]
RewriteRule ex/([^/]+)/([^/]+) ex.php?x=$1&y=$2 [L]
RewriteRule ex/([^/]+) ex.php?x=$1 [L]

thanks to Tim Cooper for editing help.

0

精彩评论

暂无评论...
验证码 换一张
取 消