htaccess files can be used to apply configuration changes per-directory basis.
The htaccess Tutorial on Brugbart provides help on how to perform many common tasks with htaccess.
Below is a collection of Tutorials, and other useful resources.
Articles on Htaccess
Common Problems and Solutions
- Missing URL GET Parameters when using mod_rewrite – How to keep your Query strings intact when using mod_reqrite