i-CONICA
asked on
Mod_rewrite QSA confusion
Hi,
I'm in need of a rewrite code, which I have, but it's not working as expected/needed.
What I need to do is rewrite
/index.php?var1=var1data
to
/var1data/
Which works, but also, it needs the ability to contiue this pattern further, so i could do
/index.php?var1=var1data&v ar2=var2da ta&var3=va r3data etc...
giving me
/var1data/var2data/var3dat a/
Below is my existing code, I read that the QSA flag might be needed? But also, my example has predefined variable names, can it be done without knowing the variable names?
Thanks.
I'm in need of a rewrite code, which I have, but it's not working as expected/needed.
What I need to do is rewrite
/index.php?var1=var1data
to
/var1data/
Which works, but also, it needs the ability to contiue this pattern further, so i could do
/index.php?var1=var1data&v
giving me
/var1data/var2data/var3dat
Below is my existing code, I read that the QSA flag might be needed? But also, my example has predefined variable names, can it be done without knowing the variable names?
Thanks.
RewriteRule ^([^/]*)/$ /index.php?var1=$1
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I could use this but ideally, it'd work without knowing variable names in advance. Is that not possible?
Thanks again.