Note that there are some explanatory texts on larger screens.

plurals
  1. POCakephp only loads one .css-file - 403-Error for all others
    primarykey
    data
    text
    <p>I have a problem which I find fairly strange, maybe someone can help me.</p> <p>I use cakephp. My web root folder for apache is /home/jw/www. My project is under /home/jw/www/hc2, so the overall folder structure (only the parts important for this question) is:</p> <pre><code>www /hc2 /app /webroot index.php /css /cake.generic.css /any.css /other.css /stylesheets.css /js /any.js /javascript.js /files.js </code></pre> <p>Well, cakephp works fine so far - routing (with mod_rewrite enabled), database connection etc. works. The one but huge problem is: No .css- or .js-files are loaded, except the cake.generic.css! The part of the .cpt-template, where I load css and js files looks something like:</p> <pre><code>echo $this-&gt;Html-&gt;css('cake.generic'); echo $this-&gt;Html-&gt;css('bootstrap.min'); echo $this-&gt;Html-&gt;css('layout'); echo $this-&gt;Html-&gt;script('bootstrap.min'); echo $this-&gt;Html-&gt;script('jquery-2.0.3.min'); </code></pre> <p>In the html- of the loaded page this becomes e.g.:</p> <pre><code>&lt;link href="/hc2/css/cake.generic.css" type="text/css" rel="stylesheet"&gt; &lt;link href="/hc2/css/bootstrap.min.css" type="text/css" rel="stylesheet"&gt; </code></pre> <p>But when I examine those two with firebug, I see that the first of those is loaded correctly - I can see the css-definitions of the file - while the other one receives an error 403!</p> <p>Is it maybe a mod_rewrite-problem? But since I can access all controllers just the way it should be, I can't quite imagine that... Does anyone maybe have an idea? Would be very happy, thanks...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload