Support the ongoing development of Laravel.io →
posted 6 years ago

I am new to laravel. I built a route on my QNAP NAS and it works fine. But I move the route file to the Ubuntu 18.04 server, except the root "/" is works fine, all '/xxx' route reported error '/xxxx was not found on this server'. When I changed the root to return the page /xxxx, it display correctly. Can anyone tell me what is going wrong?

Last updated 2 years ago.
0

Maybe your nginx issue, try to add index.php after "/", something like this: /index.php/xxx

0

Alley Ma, I followed you method and it works. Can you tell me how to fix this issue ? I am using Apache2.

0

To fix this, u must enable apache's mod_rewrite module.

I think these two links may help:

And sure, u can question me any further issue.

Last updated 6 years ago.
0

The mod_rewrite has been enabled and I modified the .haccess file but still the same. The Apache.org docs seems to hard for me to understand.I think it's a Apache setting problems.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.