trying setting up the environment variables, this one in particular:
APP_URL="http://localhost:8888/my-project/public/"
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
2 new colleagues have installed my Laravel project, the first is one Ubuntu (PHP, Apache, MySQL installed from apt) and the another is on Mac (MAMP).
The first one has successfully installed the app, and everything is working.
But the another has an infinite redirect error when he tries to access to the app.
When he accesses to http://localhost:8888/my-project/public/ from CURL, the app redirects to http://localhost:8888/my-project/public. And vice versa, http://localhost:8888/my-project/public redirects to http://localhost:8888/my-project/public/.
I don't know what the issue is from. Somebody has an idea?
Thanks a lot!
Please or to participate in this conversation.