Last active
December 17, 2015 11:19
-
-
Save drifterz28/5601501 to your computer and use it in GitHub Desktop.
HTaccess stuff.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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