hide index.php

Hi,

I installed yii in iis6.0. I was trying to do a url rewrite so I can hide the index.php in the url.

Because it doesn’t support .htaccess, I installed iirf (Ionics Isapi Rewrite Filter) 2.1 on server.

But I can’t find the correct way to write the rewrite rule. Could anyone help me?

Thank you so much

Hi,

I think this might be what you are looking for. For your iirf.ini


RewriteLog c:\pathtolog\

RewriteLogLevel 3

RewriteBase ON

StatusInquiry ON


## Rewrite the empty URL to the index.php homepage

RewriteRule ^/($|\?)   /index.php   [L,QSA]

## Redirect index.php to the empty url

RedirectRule ^/index.php$            /   [R=302]


## for non-bare URLs, rewrite conditionally

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} !^/index\.php

RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]

RewriteRule (.*) /index.php  [L,U]

#RewriteLog c:\logs\iirf_log

RewriteLogLevel 0

RewriteBase ON

StatusInquiry OFF

UrlDecoding ON

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [color="#FF0000"][QSA][/color]