title: Redirection Rule Using web.config
body: <p>I want to redirect </p>
  
  <p><a href="http://www.mydomain.com/rakhi-blog/index.php/2012/06/20/my-article/" rel="nofollow">http://www.mydomain.com/rakhi-blog/index.php/2012/06/20/my-article/</a> to 
  <a href="http://www.mydomain.com/rakhi-blog/2012/06/20/my-article/" rel="nofollow">http://www.mydomain.com/rakhi-blog/2012/06/20/my-article/</a></p>
  
  <p>For this I use the following code:</p>
  
  <pre><code>   &lt;configuration&gt;
        &lt;system.webServer&gt;
          &lt;defaultDocument&gt;
            &lt;files&gt;
              &lt;remove value="index.php" /&gt;
              &lt;add value="index.php" /&gt;
            &lt;/files&gt;
          &lt;/defaultDocument&gt;
          &lt;rewrite&gt;
            &lt;rules&gt;
              &lt;rule name="Main Rule" stopProcessing="true"&gt;
                &lt;match url="(.*)" ignoreCase="true" /&gt;
                &lt;conditions logicalGrouping="MatchAll"&gt;
                  &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
                  &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
                &lt;/conditions&gt;
                &lt;action type="Rewrite" url="index.php/{R:0}" /&gt;
              &lt;/rule&gt;
              &lt;rule name="Rewrite Index"&gt;
                &lt;match url="^index.php/*" /&gt;
                &lt;action type="Redirect" url="/rakhi-blog/{R:1}" /&gt;
              &lt;/rule&gt;       
            &lt;/rules&gt;
          &lt;/rewrite&gt;
        &lt;/system.webServer&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>But This Code is not working. Can Any one Help Me Pls.</p>