ModRewrite + ? parameters

Letus
Letus used Ask the Experts™
on
I have following problem :

existing url :
/v400/show.asp?action=HTML&id=xxxx

should be rewrited to
/v800/show_html.php?id=xxxx

but just in case parameter ACTION in first URL equals HTML. In any other case leave the URL as it is. Ideally, if the rewrite rule is
case insensitive (HTML or html), that would be great.

Can you please help me ?
Thank you
  L.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Hi,

RewriteRule ^/v400/show.asp?action=[HTML|html]&id=(.*)$ /v800/show_html.php?id=$1

should work.

david

Author

Commented:
Yup !!!
Thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial