Remove “public” word from the URL – Laravel Project
By default, Laravel project when accessed via the browser points to the public folder. It does not look good as it adds extra path to the url with “public”. So in order to access the website directly without the “public” keyword, do the following:
Steps are given below:-
- Copy .htaccess file from public folder
- Now paste it into your root.
- Now rename server.php file/page to index.php on your root folder.
- Now you can remove /public word from URL
- Refresh the page.
Now it will work.