dcolumbus
dcolumbus

Reputation: 9714

Laravel 4: img, css, js folders are returning 404

For some reason (I've never had this issue before) all of the files that exist in either my img, js, or css folder "dont exist" ... I'm getting a 404 Not Found

Upvotes: 1

Views: 3932

Answers (2)

The Alpha
The Alpha

Reputation: 146269

To include css/js/etc stored in public folder use URL::asset method, i.e.

<link href="{{ URL::asset('bootstrap/assets/css/bootstrap.css') }}" rel="stylesheet">

Update: You may also try

{{ asset('bootstrap/assets/css/bootstrap.css') }}

Here, bootstrap folder is inside domain_root/public folder.

Upvotes: 1

Mike Rock&#233;tt
Mike Rock&#233;tt

Reputation: 9007

If @Sheikh Heera's answer is not the one you need, best to double-check your .htaccess file to ensure it allows existing files through the index.php rewrite filter:

RewriteCond %{REQUEST_FILENAME} !-f

Upvotes: 0

Related Questions