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

TiboriusDev's avatar

URL does not call public/index.php

I am trying to get Laravel to run on a web server, but it does not automatically go to public/index.php

Website: wardenplus.tiborius.com

If you call up the URL, it finds nothing. But if I call up wardenplus.tiborius.com/index.php or /login then the file is loaded.

This means that I am already in the public, but it does not load the index.

But I don't know what the problem could be.

0 likes
7 replies
JussiMannisto's avatar

Are you self-hosting? Is the web server nginx, apache, something else?

It sounds like you're missing an index directive in the config.

TiboriusDev's avatar

More or less self-hosting. I host via a colleague. The server runs on nginx

JussiMannisto's avatar

@TiboriusDev htaccess is used by apache, not nginx. So I guess you were using apache instead.

If the site is correctly configured in apache, you shouldn't need to touch the htaccess file at all.

TiboriusDev's avatar

I must have done something wrong. I have now installed Laravel from Plesk and have specified the Git and now everything runs without problems.

Can be closed.

Please or to participate in this conversation.