Apache .htaccess Guide, Tutorials and Articles

Apache .htaccess Guide & Tutorial

Take advantage of .htaccess with essential techniques to configure key aspects of site functionality, with fine-grained control over everything. Learn how to set default server variables, enable specific modules, customize options and much more.

Top 5 htaccess guides

Disable PHP Execution in Some WordPress Directories
How to send your feed to Feedburner with .htaccess
Blocking offline browsers and ‘bad bots’ with .htaccess
Preventing requests with invalid characters with .htaccess
Setting up Associations for Encoded Files with .htaccess

Search Tool:

How to use .htaccess
Learn how to use .htaccess file
.htaccess file on Windows
How to use .htaccess file on Windows

Featured Articles

I cant see .htaccess files in my FTP program. What can I do? - Read How to Fix the problem
Use iPhone detection and redirection to target your iPhone users - Read How redirect iPhone users
How to create a password for a .htpasswd file using PHP - Read More Howto generate .htpasswd

What is .htaccess ?

.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software.

.htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.