RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

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.

On Mar 24, 7:10 am, Chillwabbitt <chillwabb...@gmail.com> wrote:
> 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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to