The problem is roughly –
I need a request path like this:
host/var1/val1/var2/val2/var3/val3/…
to be overwritten like:
host/index.php?var1=val1&var2=val2&val3=var3&…
Any ideas ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mod_rewrite isn’t going to be able to parse key/value pairs on its own. Your best bet is to have index.php help out with the parsing.
Your .htaccess file would look like this:
Then you would use PHP at the beginning of index.php to set up the $_GET variable: