Created
April 19, 2018 04:47
-
-
Save francosalcedo/26c32f683acaaad24804b4e773443fae to your computer and use it in GitHub Desktop.
Laravel in shared hosting apache htaccess
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
| In root directory (public_html/.htaccess) | |
| RewriteEngine On | |
| RewriteRule ^(.*)$ public/$1 [L] | |
| In public/.htaccess | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule . /index.php [L] | |
| </IfModule> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment