Skip to content

Instantly share code, notes, and snippets.

@wattanar
Last active October 25, 2017 03:21
Show Gist options
  • Save wattanar/2c8e6d4df49481d3ceb290feebd9d612 to your computer and use it in GitHub Desktop.
Save wattanar/2c8e6d4df49481d3ceb290feebd9d612 to your computer and use it in GitHub Desktop.
.htacess example
Options All -Indexes
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<FilesMatch "^.*(access_log|error_log|php.ini|\.[hH][tT][aApP].*)$">
Order deny,allow
Deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment