Monday, August 1, 2016

How to remove public from URL in Laravel?

If you can access your website by abc.com/public and if you want to access it by just Garmentspedia
Then just rewrite the following code in .htaccess file in public folder.

RewriteRule ^(.*)/$ /$1 [L,R=301]
to RewriteRule ^(.*)/$public /$1 [L,R=301]


Hope it will work fine. 

No comments:

Post a Comment