How to remove /public from URL in laravel?

Posted by Andre Scott | Updated on

To remove Public from URL, follow the simple steps mentioned below:-

Rename server.php in your Laravel root folder to index.php

Copy the .htaccess file from /public directory to your Laravel root folder.

With the help of these steps, you can remove Public from URL


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers