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

htooaunghlaing95's avatar

Deploy laravel app and can only see homepage others got 404

I just deploy my Laravel App on Ubuntu server using Nginx. It works but the problem is i can only see my welcome page except from that I got 404 error.

0 likes
7 replies
Yamen's avatar

Make sure that the .htaccess file is in your public_html.

rumm.an's avatar

@Yamen He is using Nginx, Nginx doesnt support .htaccess.

@htooaunghlaing95 Is it a Laravel's 404 or NginX one's? Also , Which Hosting provider you are using? Is it shared Hosting or a VPS?

1 like
htooaunghlaing95's avatar

@rumm.an it is Nginx 404 i guess. it is shared hosting. As i am a new to laravel. I may have difficulty to answer technical question. sorry that if i am wrong. but 404 is from nginx i guess because ... it shows nginx under the 404 error. ** PLEASE HELP ME, I HAVE FINAL PRESENTATION ON COMING TUESDAY. I NEED TO FINISH IT AS SOON AS POSSIBLE**

htooaunghlaing95's avatar

It works now ! because my of nginx server configuration need some line of codes.

Please or to participate in this conversation.