title: Cakephp 3.x trying to view Uploaded images results in Missing Controller Error
body: <p>I have an image located at webroot/uploads/profiles/partner_1/bg_image.jpg</p>
  
  <p>When I attempt to display an uploaded image located at:
  uploads/profiles/partner_1/bg_image.jpg</p>
  
  <p>I get the Error:</p>
  
  <blockquote>
    <p>Error: UploadsController could not be found.</p>
  </blockquote>
  
  <p>What makes this particularly frustrating is that this same application is working on my local dev server, and only fails when I move it up to production. I feel like there must be some simple solution that I'm just missing as I stress over deadlines.</p>
  
  <p>The .htaccess file is unmodified but follows:</p>
  
  <pre><code># Uncomment the following to prevent the httpoxy vulnerability
  # See: https://httpoxy.org/
  #&lt;IfModule mod_headers.c&gt;
  #    RequestHeader unset Proxy
  #&lt;/IfModule&gt;
  
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
      RewriteRule    ^$    webroot/    [L]
      RewriteRule    (.*) webroot/$1    [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I experimented placing the target file in different directories down the path..  It seems to be a factor of <strong>directory depth</strong>.</p>
  
  <p>I can find the file in:
      /uploads, 
      /uploads/profiles, 
      /img, 
      /img/uploads, </p>
  
  <p>Basically anything more then 2 directories deeper then webroot fails.</p>