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]
精彩评论