Created
August 10, 2015 07:27
-
-
Save makzan/b4b3ad14568c6af01e1e to your computer and use it in GitHub Desktop.
Remove "public" in URL in Laravel 5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
Yes, It is working and now both URLs are working,
like
laravelwebsite.com/public & laravelwebsite.com
I need the website should be accessible only by laravelwebsite.com and not by laravelwebsite.com/public
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this file in root of Laravel 5 folder.