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

vinschi's avatar
Level 16

Routes not loaded after deploying on hosting with laravel 5.4

Hi guys, I bother you again. After I loaded the app in my hosting, now finally I can see the homepage. However I can't access to the other routes (not even /login or /register). I modified my /config/app.php in this way:

 'url' => env('APP_URL', 'http://www.mysite.com/')

but I can't access to http://www.mysite.com/something and I have 404 error

Any ideas? Thanks in advance

0 likes
6 replies
vinschi's avatar
Level 16

@Snapey the problem is that as soon as I copy the .htaccess inside the www folder (my public) I have a 500 error and I don't get why

vinschi's avatar
vinschi
OP
Best Answer
Level 16

@Snapey solved. It was a problem into the .htaccess server side, I opened a ticket and they fixed it.

jimix's avatar

Hi @vinschi , Do you know what is the problem exactly?

I have the same problem and it's my server.

If it possible, could you send me your .htaccess file? thanks a lot

vinschi's avatar
Level 16

@jimix I will send you the .htaccess tonight and explain what I understood :)

Please or to participate in this conversation.