What is the .htaccess file? Specifically, it a simple ASCII text file.
How do you create an .htaccess file? You can use a regular text editor such as Notepad or Simpletext.
Where is the .htaccess file stored/saved? It is stored in your main site directory and/or in any subdirectory.
What does the .htaccess file do? That is what the following pages will cover. There are some main uses such as personalized error pages, password protection and redirects. It does all that and more.
Do all hosts support/allow this file? VERY IMPORTANT : check with your host if they allow this file to be used by you AND if they pose any restrictions on its use. This is also important to know before reading all of the following pages. It'd be a waste of time doing all that learning for nothing. This file is works on an Unix/Apache based host, not Windows/NT.
Any other thoughts before heading into htaccess learning? Keep a backup of the original file in case of problems.
Individual commands in the htaccess file are meant to be on one line only. Be sure that text editor has word wrap turned off.
Table of Contents
Learn More About .htaccess
Learn about how password protection can work
Learn how you can prevent bandwidth theft (aka hotlinking) using htaccess files.
Change default dir page
Learn how you can change the deafult directory page using an htaccess file.
Directory on / off
Learn how you can toggle a directory list of all available files on or off.
Learn about the cascading behavior of htaccess files.
Learn how you can host different files types on your server by configuring mime types.
Learn how you can configure redirects using an htaccess file.
Custom Error Messages
Learn about how to setup custom error messages in htaccess files.
Learn about how to create an htaccess file.
Upload & CHMOD
Learn about how to upload and change permissions in htaccess files.
Learn about Server Side Includes and how it's configured using an htaccess file.
Deny via IP
Learn about how to deny specific IP addresses in .htaccess files.