Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ziben69's avatar

Laravel download file instead of loading

Hello, I moved a project from a local server to shared hosting. I changed the php version for the domain. I did not change the paths in index.php, because I changed the domain redirection to the public subdirectory (I have already done that and had no problems with it before). Now, when I try to load a page, it downloads me a file. On the server side, I also made composer dump-autoload.

I will add that some links work, I can go to example.com/home, but if I want to get to example.com it does not work

What else should I check?

0 likes
3 replies
malik88888's avatar

Try to use another device to load the site -this worked for me - i think it's caching issue in the server it self

Snapey's avatar

Do you have a .htaccess file to redirect everything to index.php?

Please or to participate in this conversation.