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.
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.
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.
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.
Information about the .htaccess file .htaccess / General Guides
The .htaccess file is an ordinary text file that you can create using Notepad or any text editor and ftp it into your Web root directory. This file will contain the configuration statements (commands) to customize the Apache Web server software for your Web site.
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.
Creating Custom Error Messages in Apache .htaccess / Error Handling
The .htaccess file is a file found in Apache servers that allows you to manipulate the behaviour of the server. A very common use is to create custom error messages for server errors. Examples of such errors are "404 Not Found" (say when you click on a broken link), and the "500 Internal Server Error" (a script failed). Most hosts allow you to have your own .htaccess file, and so now we will look at only one of the things we can do with a custom .htaccess.
Fun with .htaccess .htaccess / General Guides
The .htaccess is a simple ASCII text file placed in your www directory or in a subdirectory of your www directory. You can create or edit this file in any text editor (such as NotePad) and then upload it to the directory for which you want to modify the settings.
Control File Defaults in Apache .htaccess / General Guides
Apache allows webmasters to create special files called .htaccess and .htpasswd with which access control and a range of defaults can be managed. This tutorial will first of all show you how to create a .htaccess file, and then how to use it to control error reporting, default filenames, and password protection.
.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.
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.