Images failed to load on uploaded website

I have the following code in my kirby block and the images are visible at localhost, but not on the uploaded website…

<?php foreach ($block->images()->toFiles() as $image): ?>
    <div class="project" style=" height: auto; background-image: url(<?= $image->url() ?>)">
    <img src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=" alt="6" />
    </div>
<?php endforeach ?>  

Is there something wrong?

Thanks for any help!

Also I cannot access the panel via /panel after the domain…
" Not Found. The requested URL was not found on this server."

The website don’t have subpages and therefore I put everything directly on site.php. Is there maybe a problem with that?

solved it by editing my htaccess file as I was running it from a subfolder:

RewriteBase /mysite