Level 7
You'll need to update your Apache/Nginx site config to point to the public directory, e.g. /var/www/example_site/public
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, Suppose Website: www.example.com
I installed laravel on server, I want my site should run only this URL like "www.example.com" but it is run on "www.example.com/public". And if suppose I run "www.example.com" it listing all folders. I want to remove public from my URL.
Please or to participate in this conversation.