Make sure your Physical Path is pointing to the webroot directory, not the root of the app. I've used the .htaccess files (using ISAPI mod rewrite) but never got it to work by pointing to the root of the app. I always had to point to the webroot directory so the assets worked.
On Wednesday, March 7, 2012 8:15:35 AM UTC-8, Brett Fitzgerald wrote: > > Hi Chris, > > I am wondering if you've had any successful resolution on this topic. I'm > also trying to get CakePHP rewriting to work on IIS 7 and have also had > limited success with both the web.config in the wiki and with importing the > .htaccess files via the IIS interface. By rearranging the imported rules I > can get either the css/images/js files to load on the home page, or I can > get the controllers, actions, and views to load. I can't get both at the > same time though. > > Thanks! > Brett > > On Saturday, February 18, 2012 10:37:51 AM UTC-5, Christoph Wagner wrote: >> >> Still couldn't get it to work, neither with the webconfig stated in >> the cookbook nor with the automatic import function of IIS :( >> >> Any help is appreciated :/ >> >> On 23 Jan., 16:51, Suelen Goularte Carvalho >> <[email protected]> wrote: >> > Hello, it's just a web.config, but you will not need to create it. When >> you >> > import the "Import Rules" IIS7 web.config it will create automatically. >> Add >> > me to talk in GTalk;-) >> > >> > Hugs! >> > >> > On Mon, Jan 23, 2012 at 12:36 PM, Christoph Wagner < >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > [email protected]> wrote: >> > > Hi Suelen, >> > >> > > thanks for the information! Will try it later tonight! >> > > One question: do I have to put the webconfig files for the htaccess >> in >> > > root/app and app/webroot also in these folders or >> > > do I need to create something like a "super" webconfig, meaning there >> > > is only one webconfig in the cake folder? >> > >> > > On 23 Jan., 01:24, Suelen Goularte Carvalho >> > > <[email protected]> wrote: >> > > > One more thing, you must import all three. htaccess file that >> exist. The >> > > > root, root/app and root/app/webroot and order them in the >> web.config file >> > > > is important, I do not remember exactly what order, but basically >> the >> > > more >> > > > general rule up and down more specific. >> > >> > > > On Sun, Jan 22, 2012 at 10:19 PM, Suelen Goularte Carvalho < >> > >> > > > [email protected]> wrote: >> > > > > I also spent an afternoon trying to make it work ... almost wrote >> a >> > > post >> > > > > about it, now I see I should have written. >> > >> > > > > On Sun, Jan 22, 2012 at 10:16 PM, Suelen Goularte Carvalho < >> > > > > [email protected]> wrote: >> > >> > > > >> Try to import the rules, I did that and it worked, it will >> > > automatically >> > > > >> create the web.config correctly. For this you need to have >> enabled URL >> > > > >> Rewrite on IIS7. The following print attached, perhaps to help >> you. >> > >> > > > >> On Sun, Jan 22, 2012 at 8:44 PM, Christoph Wagner < >> > > > >> [email protected]> wrote: >> > >> > > > >>> Hi Jose, >> > >> > > > >>> yeah I tried that, but it won't work :/ >> > >> > > > >>> the site ishttp://www.brainsnacks.de/ >> > >> > > > >>> Source shows that its not redirecting corretly to the webroot >> sources >> > > > >>> and to the included elements.. >> > >> > > > >>> Anything else to configure maybe? >> > >> > > > >>> On 22 Jan., 22:40, José Lorenzo <[email protected]> wrote: >> > > > >>> > You need this: >> > >> > >http://book.cakephp.org/2.0/en/installation/advanced-installation.htm. >> >> > > > >>> .. >> > >> > > > >>> -- >> > > > >>> Our newest site for the community: CakePHP Video Tutorials >> > > > >>>http://tv.cakephp.org >> > > > >>> Check out the new CakePHP Questions >> sitehttp://ask.cakephp.organd >> > > > >>> help others with their CakePHP related questions. >> > >> > > > >>> To unsubscribe from this group, send email to >> > > > >>> [email protected] For more options, visit >> this >> > > > >>> group athttp://groups.google.com/group/cake-php >> > >> > > > >> -- >> > >> > > > >> Suelen Goularte Carvalho >> > > > >> Twitter: @suelengc >> > > > >> Celular: +55 (0xx11) 9336-7069 >> > > > >> Blog:http://blog.suelengc.com.br/ >> > > > >> Estou nas redes sociais: Linkedin, Facebook e Twitter. >> > >> > > > > -- >> > >> > > > > Suelen Goularte Carvalho >> > > > > Twitter: @suelengc >> > > > > Celular: +55 (0xx11) 9336-7069 >> > > > > Blog:http://blog.suelengc.com.br/ >> > > > > Estou nas redes sociais: Linkedin, Facebook e Twitter. >> > >> > > > -- >> > >> > > > Suelen Goularte Carvalho >> > > > Twitter: @suelengc >> > > > Celular: +55 (0xx11) 9336-7069 >> > > > Blog:http://blog.suelengc.com.br/ >> > > > Estou nas redes sociais: Linkedin, Facebook e Twitter. >> > >> > > -- >> > > Our newest site for the community: CakePHP Video Tutorials >> > >http://tv.cakephp.org >> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd >> help >> > > others with their CakePHP related questions. >> > >> > > To unsubscribe from this group, send email to >> > > [email protected] For more options, visit this >> group >> > > athttp://groups.google.com/group/cake-php >> > >> > -- >> > >> > Suelen Goularte Carvalho >> > Twitter: @suelengc >> > Celular: +55 (0xx11) 9336-7069 >> > Blog:http://blog.suelengc.com.br/ >> > Estou nas redes sociais: Linkedin, Facebook e Twitter. > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
