Skip to content

Instantly share code, notes, and snippets.

@drifterz28
Last active December 17, 2015 11:19
Show Gist options
  • Save drifterz28/5601501 to your computer and use it in GitHub Desktop.
Save drifterz28/5601501 to your computer and use it in GitHub Desktop.
HTaccess stuff.
## Include this at the start of your .htaccess file ##
Options +FollowSymlinks
RewriteEngine On
## Rewrites all .html pages to php pages with a 301 for seo
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [R=301,L]
## Disable the Server Signature ##
ServerSignature Off
## Block access to some file
<files FILENAME>
Order allow,deny
Deny from all
</files>
<files .htaccess>
Order allow,deny
Deny from all
</files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment