Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had urls like this:

and I need to redirect al requests coming to index.php to this:

I am aware of apache's methodology via .htaccess, but how do I do it on IIS7 ?

share|improve this question

You should be able to do this with the IIS 7 URL Rewrite module.

share|improve this answer

Try the following rule (I'm assuming it's an inbound rule):

    <rule name="SFRule" stopProcessing="true">
      <match url="index\.php" />
      <action type="Redirect" 
              redirectType="Found" />
        <add input="{QUERY_STRING}" 
             pattern="route=([_0-9a-z-\/]+)(?:&amp;|&amp;amp;)path=([A-Za-z]+)(?:&amp;|&amp;amp;)product_id=([0-9]+)" />
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.