Is it possible to redirect url parameters as segments in .htaccess file?
i.e.
test/index.php?parameter=MYVALUE
to
test/MYVALUE/
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.
Yes. Try this:
According to “What is matched?” in the mod_rewrite docs, the query string (part after the
?) is separated out into theQUERY_STRINGvariable, which then has to be tested separately from the main part of the URL. InRewriteCond, the parameter value is captured by the regular expression within the parentheses(.*), and is then available as%1in theRewriteRule.