Have you ensured that htaccess is working ok?

do you need to add rewritebase?

-or-

cake internal rewrite - uncomment line 69 ish
https://github.com/cakephp/cakephp/blob/master/app/config/core.php#L69

url in the browser won't be so pretty.

 - S




On 2 March 2011 16:12, Duke <[email protected]> wrote:

> Thanks for your reply,
>
> The server is configured as follows:
>
> Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.7a
> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
>
> I tried renaming cake.generic.css to cake.css, and changing
> default.ctp but still get the same error 406.
>
> I'll have a look at core.php to see if I can spot anything but being a
> newbie I highly suspect nothing will jump out!
>
> On Mar 2, 3:25 pm, Sam Sherlock <[email protected]> wrote:
> > what server is this installed on?
> >
> > the display of the home ctp file works ok? (not styled)
> > try domain.com/app/pages/home  - this should display the same home.ctp
> >
> > I have feeling that this issue might have something to do with MIME
> >
> > > types on the server due to the dot in the filename (cake.generic.css),
> > > but I am doubtful.
> >
> > I doubt that but you can check
> >
> > what happens if you:
> >  a) copy the cake.generic.css  -to- cake.css
> >  b) update the app/views/layouts/default.ctp to point to cake.css
> >
> > do you still get err 406?
> >
> > maybe something is happening with htaccess and the default ht's need
> > altering for your server
> > maybe you need to use cake internal routing - see app/config/core.php
> >
> >  - S
> >
> > On 2 March 2011 13:40, Duke <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi all,
> >
> > > My first post here so I'll give a little introduction. I'm pretty new
> > > to CakePHP but have experience with PHP and MVC. So far I've read
> > > through the cookbook and I'm halfway through reading a more in depth
> > > book on the platform.
> >
> > > I have just done a fresh install onto a test web host and when loading
> > > up the default index page it isn't applying any CSS styles. Looking
> > > further into it, the host is returning a HTTP error 406 (Not
> > > Acceptable) for the /css/cake.generic.css file.
> >
> > > A little about the install...
> >
> > > Cake root: /home/xxx/cakephp
> > > App root: /home/xxx/cakephp/app
> > > Web root: /home/xxx/public_html/app
> > > URL:http://domain.com/app
> >
> > > I have feeling that this issue might have something to do with MIME
> > > types on the server due to the dot in the filename (cake.generic.css),
> > > but I am doubtful.
> >
> > > Has anyone experienced this problem, or even better, managed to
> > > resolve it?
> >
> > > Many Thanks
> >
> > > --
> > > 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
>
> --
> 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
>

-- 
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

Reply via email to