Answer the question
In order to leave comments, you need to log in
Is it possible to use MOD_REWRITE for multiple GET parameters?
Is it possible to use MOD_REWRITE for links that pass a different number of GET parameters and are ordered differently, and their number is different?
The link may look like
Answer the question
In order to leave comments, you need to log in
Yes, it’s possible not you both are wrong, everything is much more interesting there.
One way example
# 301 --- http://www.test3.com/faq.html?faq=13&layout=bob => bbq.html
RewriteCond %{QUERY_STRING} (^|&)faq\=13($|&)
RewriteCond %{QUERY_STRING} (^|&)layout\=bob($|&)
RewriteRule ^faq\.html$ /bbq.html? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question