Question

I just bought a new dedicated server to make my website inside

My website is created with cake php and the server debian

as I look at my site www.exemple. com it get me out the html css and flow but the images are not displayed Failed to load resource: the server responded with a status of 404 (Not Found) http://exemple.com/img/logo.png

the file exists in / webroot / img /

the site is http://proveille.com

Was it helpful?

Solution

 1. Make sure that an .htaccess override is allowed and that
    AllowOverride is set to All for the correct DocumentRoot.
 2. Make sure you are loading mod_rewrite correctly.
 3. Make sure your copy of CakePHP comes from the downloads section of
    the site or our Git repository, and has been unpacked correctly, by
    checking for .htaccess files.

For more details read the cookbook page.

OTHER TIPS

Edit your .htaccess file inside /app for this

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top