views:

357

answers:

1

What would this rewrite rule from .htaccess translate to IIS7 web.config?

RewriteRule .* index.php/$0 [PT,L]

A: 

Can't test it right now but hopefully

<rewrite>
  <rules>
    <rule name="some unnamed rule" stopProcessing="true">
      <match url="^.*$" />
      <action type="Rewrite" url="index.php/{R:0}" />
    </rule>
  </rules>
</rewrite>

isn't too wrong...

VolkerK
By the way, in IIS7 there is a place for you to paste .htaccess rewrites and IIS7 will automatically convert it! Just found it.
TruMan1