Hi i want to make safe urls for a website. I used php's explode function that way
$explode = explode("/",$_SERVER['REQUEST_URI']);
I then was extracting with $explode[2] etc the names inside the url and then with sql statements combined them with the db took ids, names and whatever else. Entered url was like
http://www.example.com/index.php?var1=value1&var2=value2&var3=value3
and made it
http://www.example.com/value1/value2/value3 through .htaccess.
Code there is
RewriteRule ^(.*)/(.*)/(.*)$ index.php?var1=$1&var2=$2&var3=$3 [L]
But the site's php is already written fully so i do not want to change all GET queries at url cause now are not working. Is there an easier way to do so or can you correct the code so i can use again GET functions above? I forgot to mention at url value1,value2 etc are not ids (numbers) but the corresponding names. For example if it is for a furniture the url is
www.example.com/furniture/chair/.. not www.example.com/3/24/...
Is there any other way to succeed this functionality? Thanks.