tags:

views:

13

answers:

1

i want RewriteRule to make this from

file.php?var_1=xx&var_2=xx

to

file/var_1?var_2=xxx
A: 

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]
Preet Sangha