Created
March 3, 2020 13:52
-
-
Save mdsami/905e778159d2241a47fe7dde20908082 to your computer and use it in GitHub Desktop.
htaccess for laravel
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 | |
| RewriteCond %{REQUEST_URI} !^/public | |
| RewriteRule ^(.*)$ /public/$1 [L] | |
| RewriteCond %{REQUEST_URI} !^/public | |
| RewriteRule ^(.*)$ /public/$1 [L] | |
| </IfModule> | |
| # php -- BEGIN cPanel-generated handler, do not edit | |
| # Set the “ea-php70” package as the default “PHP” programming language. | |
| # <IfModule mime_module> | |
| # AddHandler application/x-httpd-ea-php70 .php .php7 .phtml | |
| # </IfModule> | |
| # php -- END cPanel-generated handler, do not edit | |
| # <FilesMatch “\.(php|php\.)$”> | |
| # Order Allow,Deny | |
| # Deny from all | |
| # </FilesMatch> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment