Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nero's avatar
Level 1

Why css and js does not work in shared hosting?

I've uploaded my project laravel 5 to shared hosting: My laravel project stored in: / Users / nero / laravel.

Css files, JSS, image I keep in the public folder: Users / nero / laravel / public

Then I copy all of the files in / Users / nero / laravel / public to / Users / nero / public_html

File front.blade.php:

Application has been able to walk, but why css style can not work? Images can appear but css and js can not work.

Can you help me?

0 likes
2 replies
jlrdw's avatar

I have a site on GoDaddy shared hosting right now that's mobile-friendly with media queries I have had absolutely no trouble with shared hosting you're setting up something incorrectly apparently.

By the way a very misleading title to your post there are laravel apps on GoDaddy HostGator and many other shared hosts and somehow or the other no one else seems to have this problem. See @Qlic answer here https://laracasts.com/discuss/channels/laravel/upload-project-laravel

zachleigh's avatar

What paths are you using to get your resources? Check in dev tools console to see if you get any errors.

Please or to participate in this conversation.