Skip to content

Instantly share code, notes, and snippets.

@mdsami
Created March 3, 2020 13:52
Show Gist options
  • Select an option

  • Save mdsami/905e778159d2241a47fe7dde20908082 to your computer and use it in GitHub Desktop.

Select an option

Save mdsami/905e778159d2241a47fe7dde20908082 to your computer and use it in GitHub Desktop.
htaccess for laravel
<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