Thursday, June 2, 2016

How to remove /public/ from URL in Laravel Project?






remove public from url


In this instructional exercise we will figure out how to remove public from laravel url.You can utilize this technique for laravel5.X+ and lower versions.By default, the URL which accompanies Laravel App will be this http://example.com/pubic/.So to get perfect URLs which are useful for SEO reason you should remove public from url in laravel application.

It's very easy for laravel 5+  .Just do the following process:

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


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

That's it. Just Reload the Project. You will see the project url without /public in it. 
Let's see with a demo video Tutorial.

 

Related Articles

0 comments:

Post a Comment