开发者

hard problem with .htaccess

开发者 https://www.devze.com 2023-01-20 02:55 出处:网络
i want RewriteRule to make this from file.php?var_1=xx&var_2=xx 开发者_JAVA技巧 to file/var_1?var_2=xxx

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

精彩评论

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