These are the rewrite rules I use with isapi rewrite 3. I would also
recommend avoiding the use of a main .htaccess file and just properly
set the document root of your project in IIS.
> Hi
> I have installed isapi rewite 3 from halicon, however I have one
> blasted problem and it's more than likely a rule.
> I can see the home page just fine with all it's styling and such,
> however if I call a controller I have to do it as follows:http://www.mydomain.co.za/index.php/controller/action;what the heck
> am I doing wrong?
> my main .htaccess file looks as follows:
> # Helicon ISAPI_Rewrite configuration file
> # Version 3.1.0.62
> RewriteEngine on
> RewriteRule ^$ webroot/ [L]
> RewriteRule (.*) webroot/$1 [L]
> my webroot .htaccess file looks as follows:
> # Helicon ISAPI_Rewrite configuration file
> # Version 3.1.0.62
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond URL (?!/js/|/img/|/files/|/css/).*
> RewriteRule ^/(.*) /index.php?url=/$1 [L]
> # RewriteRule ^(.*) /index.php?url=/$1 [QSA, L]
> Note: If I uncomment the last line the controllers work as expected
> however then the main page fails to load - I'm lost
> Thanks