I receive the standard apache 403 error page when navigating to places in mysite.com/img which translates to app/webroot/img.
I am using Cakephp 2.x and have setup the custom error400.ctp which works correctly for 404 errors as far as I have tested.
Is this an htaccess problem that is not letting cakephp handle the error? How do I get the error400.ctp page to show without hardcoding the path in .htaccess?
Here is my app/webroot .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Thanks!