do you see /public/ in your page URLs ?
Error displaying images in subdomain
I have successfully deployed my laravel project to shared hosting (cPanel) and all seems to be working apart from the images. The images stored directly on the server e.g. logo.png don't show up and yet css files in the same public directory show up.
When I try to view the image directly via its URL, I still can't access it and gives me an error of "The image "http://..." cannot be displayed because it contains errors.
I have tried several alternatives which work locally but not when I upload.
< img src="/img/logo.png" width="100" /> < img src="{{ asset('/img/logo.png') }}" width="100" /> None of the above works and even when I try to access it via http://sub.domain.com/img/logo.png . It gives the error above
Could you please advise? Thanks in advance
It turns out that the problem wasn't with the RewriteRule but rather the ftp client uploading the images with ASCII format. Laravel doesn't seem to pick those images so I re-ftped them with binary format and everything is working fine.
I hope this can help someone else.
Please or to participate in this conversation.