Introduction to .htaccess .htaccess / General Guides
We introduced you to .htaccess and some of its useful features. In this part we will show you how to use the .htaccess file to implement some of these.
Introduction to .htaccess .htaccess / General Guides
.Htaccess is a small text file that control configuration aspects of an Apache web server. Most people are familiar with the .htaccess file in relation with the ability to restrict access to a directory via password protection. However, .htaccess can do a lot more than password protection. .Htaccess is an extremely powerful configuration tool that can customize the way your web site behaves and how your web server handles requests.
Introduction .htaccess / General Guides
A text file called .htaccess can be used to control web server (Apache) behavior for your web site. The other sections of this .htaccess tutorial deal with actual commands (called directives) which can be used.
It configures settings for the web server per directory (the one it is placed in) and subdirectories under it.
Editing .htaccess .htaccess / General Guides
.htaccess is an abbreviation for Hypertext Access; the default name for Apache's directory-level configuration file, which enables customizing the configuration directives i.e. the parameters defined in the main configuration file. However, the configuration directives need to be in .htaccess context and the user needs appropriate permissions to edit the file. The directives apply to the documents in all the directories and the subdirectories where the .htaccess file remains located. However, the other .htaccess files in the subdirectories may alter or nullify the effects of the ones in the parent directories.
Using .htaccess in your Web Project .htaccess / General Guides
Apache web servers allow the use of a text file called .htaccess to control certain behaviours within a website. The .htaccess file contains a list of brief instructions which are referred to by the web server prior to responding to a web request.
.htaccess Guide .htaccess / General Guides
A comprehensive guide to the Apache Web Server's .htaccess configuraiton file. Includes full tutorial covering error documents, password protection, visitor blocking, hot linking prevention techniques and more.
Password Protection .htaccess / Password Protection
This section shows you how to use .htaccess to do this. It assumes, that you want the effect to apply to the whole site. The .htaccess file specifies the extent of the protection - it does not contain the passwords. These are stored in a separate file called .htpasswd.
Various .htaccess samples .htaccess / General Guides
The features that have been covered in this tutorial are the most commonly used features within a .htaccess file. There are many more different features.