I'm using a shared hosting with php 7.4 and Laravel. I created the project inside root www/ folder then I need to add a htaccess file to load index.php
source file: www/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^ /public/index.php [L]
</IfModule>
It allowed me to load the website but I couldn't load public content since then. Runing local server I can load the public resources such as stylesheet
<link rel="stylesheet" href="{{ URL::asset('css/main.css')}}">
But on production environment it returns 404 on generated source
<link rel="stylesheet" href="http://neovita.web277.uni5.net/css/main.css">