RewriteRule ^articles\.php\?id=([0-9]+)$ article-a$1.html [R=301,L]
I would like to have all links like articles.php?id=1211 pointing to article-a{ID}.html, how can I achieve this? What’s wrong with this rule?
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.
You can’t match against the query string in a rewrite rule, you need to match against the
%{QUERY_STRING}var in a condition and use the%backreference: