I need a regular expression to match this URL to enable URL rewriting.
http://www.somewhere.com/index.php?route=common/home
This is an OpenCart website.
UPDATE:
I am trying to use the regular expression to perform URL Rewriting on IIS7. The first part of the URL doesn’t need exact domain name matching but I need the to get a resulting URL as follows
you didn’t specify the language in which you’re doing this (protip: not all regexp implementations have the same rules) so I’m solving it in python: