htaccess Tricks #4 – Security

Prevent Acess to .htaccess Add the following code block to your htaccess file to add an extra layer of security. Any attempts to access the htaccess file will result in a 403 error message. Of course, your first layer of defense to protect htaccess files involves setting htaccess file permissions via CHMOD to 644: # [...]

Tags: , ,

16.Oct.08 Server Comments (2)

htaccess Tricks #3 – Performance

Improving Performance via AllowOverride Limit the extent to which htaccess files decrease performance by enabling AllowOverride only in required directories. For example, if AllowOverride is enabled throughout the entire site, the server must dig through every directory, searching for htaccess files that may not even exist. To prevent this, we disable the AllowOverride in the [...]

Tags: , ,

16.Oct.08 Server Comments (0)

htaccess Tricks #2 – Essentials

Commenting your htaccess Files It is an excellent idea to consistenly and logically comment your htaccess files. Any line in an htaccess file that begins with the pound sign ( # ) tells the server to ignore it. Multiple lines require multiple pounds and use letters/numbers/dash/underscore only: # this is a comment # each line [...]

Tags: , ,

16.Oct.08 Server Comments (0)

htaccess Tricks #1 – General Information

This article, htaccess Tricks, covers just about every htaccess “trick” and is easily the site’s most popular offering. In addition to this htaccess article, you may also want to explore the rapidly expanding htaccess tag archive. General Information .htaccess Definition Apache server software provides distributed (i.e., directory-level) configuration via Hypertext Access files. These .htaccess files [...]

Tags: , , ,

16.Oct.08 Server Comments (0)

:)