Created
December 3, 2021 20:10
-
-
Save meetsohail/a23a8a4befd3d0d4575fdb3b50f380ef to your computer and use it in GitHub Desktop.
Run Laravel project on cPanel shared hosting?
This file contains 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
# add to .htaccess root | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^$ public/index.php [L] | |
RewriteRule ^((?!public/).*)$ public/$1 [L,NC] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment