Created
March 31, 2019 00:56
-
-
Save dayaki/89c9f637b0b64affe75d281acf6c9ccd to your computer and use it in GitHub Desktop.
remove /public from laravel url
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> | |
# Turn Off mod_dir Redirect For Existing Directories | |
DirectorySlash Off | |
# Rewrite For Public Folder | |
RewriteEngine on | |
RewriteRule ^(.*)$ public/$1 [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment