Level 14
you should configure your hosting to point your domain to the /public folder, not root
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i upload one laravel project on hosting server. on localhost it only call by php artisan server command. when i upload it on server than not working so i do some changes then its load but js and css not call showing 404 on network
on root folder not any htaccess, public.php and server.php
so i create one htaccess and add this
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^ ^ [N]
RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
RewriteRule ^(.*)$ public/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ server.php
and on public folder index.php change to server.php now website load but js and css not call
how to fix it
Please or to participate in this conversation.