Skip to content

Instantly share code, notes, and snippets.

@antonio-abrantes
Last active February 10, 2018 15:01
Show Gist options
  • Save antonio-abrantes/a63afcfafc6a55350fbc37780632469a to your computer and use it in GitHub Desktop.
Save antonio-abrantes/a63afcfafc6a55350fbc37780632469a to your computer and use it in GitHub Desktop.
RewriteEngine On
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
<Files index.php>
Order Allow,Deny
Allow from all
</Files>
<Files nome_arquivo.php>
Order Allow,Deny
Allow from all
</Files>
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment