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

OzzDev's avatar

Laragon pretty url is not working properly

I'm using laragon and I created a new project but using the command "laravel new blog". However when I access "blog.test" I access the root folder instead of the project. To access the project is necessary to access "http://blog.test/blog/public/". Do you know what configuration is necessary to do so access the project only with "blog.test?

Thank you.

Index of / blog/ node_modules/ package-lock.json blog2/

0 likes
1 reply
jlrdw's avatar
jlrdw
Best Answer
Level 75

I tried laragon once, but don't use now.

However I am not following your question. Just setup laravel correctly and point to public as document root and laravel has correct url's out oft the box. Just suggestion.

Also what server are you using, apache and nginx have different setups. I use both, but I downloaded nginx and php direct.

1 like

Please or to participate in this conversation.