For whatever webserver you are using, you need to make the /public dir of laravel be the DocumentRoot for the site. Right now, the testprojekt dir is the DocumentRoot. It needs to be /path/to/testprojekt/public
Next Issue fonts and images arent visible
Hi Guys,
well my Laravel Project is running now on server. but it is only reachable over testprojekt/public url. if i just use /testprojekt i get
Forbidden You don't have permission to access /testprojekt/ on this server.
and also my fonts and my background image are not working if i use testprojekt/public
it says
Failed to load resource: the server responded with a status of 404 (Not Found)
the link is :
bla.it/public/images/betonboden.jpg
but it has to be:
bla.it/testprojekt/public/images/betonboden.jpg
anyone can help me to solve that?
Thx in advance
Tom
First use this as a guide:
http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/
Second your folder structure would be like this:
https://i.imgur.com/Oo6k4Fp.jpg

Third your htaccess add the line:
RewriteEngine On
RewriteBase /laravel54/ //Change this line to your use case
A similar guide:
https://laravel-news.com/subfolder-install
Note in the guide:
FTP everything except your public folder into the back-end folder that you created (dj3core in my example)
FTP the contents of your public folder into the subdomain folder (dj3 in my example)
and
// require __DIR__.'/../bootstrap/autoload.php';
require __DIR__.'/../../dj3core/bootstrap/autoload.php';
and
// $app = require_once __DIR__.'/../bootstrap/app.php';
$app = require_once __DIR__.'/../../dj3core/bootstrap/app.php';
Use your names, and adjust as needed for laravel 5.8
If the guide is followed, this whole process only takes a few minutes.
=====================
Display an image use asset helper:
<img src="{{ asset('assets/upload/imgdogs') . '/' . $row->dogpic }}" alt="" class="image"></a>
Load basic resource:
<link href="{{ asset('assets/css/dog/style.css') }}" rel="stylesheet">
Load js
<script type="text/javascript" src="{{ asset('assets/js/jquery.js') }}"></script>
But use your folder names.
If using mix, follow documentation.
Please or to participate in this conversation.