Skip to content

Instantly share code, notes, and snippets.

@irkreja
Created November 27, 2018 09:56
Show Gist options
  • Save irkreja/d1aa37146a52181919e10a2ef32f9674 to your computer and use it in GitHub Desktop.
Save irkreja/d1aa37146a52181919e10a2ef32f9674 to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
# Disable Directory listing
Options -Indexes
# block files which needs to be hidden, specify .example extension of the file
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
# php -- BEGIN cPanel-generated handler, do not edit
# NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
# Do not edit. This next line is to support the cPanel php wrapper (php_cli).
# AddType application/x-httpd-ea-php72 .php .phtml
# php -- END cPanel-generated handler, do not edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment