CakePHP don't loading css and js files

I recently cloned a project, but when I run it, the Google Chrome console shows me this:

I already activated mod_rewrite in apache, but the error persists.

sudo a2enmod rewrite

Can someone help me?

Did you restart Apache after enabling the module?


sudo service apache2 restart

Does it show you cakephp 404 or apache 404?
What is your document root? What does your virtualhost config file look like? have you tried running cake server?
More info will help us help you better.

  • Are you sure you serving the page with apache? Could it be it is servef by e.g. nginx?
  • Is htaccess readable by apache user (also check for suexec user if any)?
  • Do you have the correct RewriteBase directive in htacces?