开发者

hard problem with .htaccess

i want RewriteRule to make this from

file.php?var_1=xx&var_2=xx
开发者_JAVA技巧

to

file/var_1?var_2=xxx


I've never done this so don't know if the following works, but the regex tests correctly

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^file.php\?var_1\=(.+)\&var_2\=(.+)$ file/var_1?var_2=$2 [NC]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜