How to redirect all requests to public folder in Laravel

Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern.

Since the web files for Laravel are in the 'public' subfolder, we need to take the url http://domain/public for loading the web content.

We can change this settings and redirect all requests to 'public' folder by renaming the file "server.php" in the root folder as "index.php"

Leave a Reply