IIRF URL rewrite for Yii

By Ronald van Belzen | May 1, 2013

I have found only wrong answers to the question what to put in an iirf.ini file for an url rewrite for Yii in combination with IIS. The right answer is:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/.*$ /index.php [L,QSA]

I hope this saves someone a headache.

Add new comment