.htaccess
Written
Author
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
Password Protection
Learn about how password protection can work
Last Updated
Kill Hotlinks
Learn how you can prevent bandwidth theft (aka hotlinking) using htaccess files.
Last Updated
Change default dir page
Learn how you can change the deafult directory page using an htaccess file.
Last Updated
Directory on / off
Learn how you can toggle a directory list of all available files on or off.
Last Updated
Cascading Behavior
Learn about the cascading behavior of htaccess files.
Last Updated
Mime Types
Learn how you can host different files types on your server by configuring mime types.
Last Updated
Redirects
Learn how you can configure redirects using an htaccess file.
Last Updated
Custom Error Messages
Learn about how to setup custom error messages in htaccess files.
Last Updated
Creating htaccess
Learn about how to create an htaccess file.
Last Updated
Upload & CHMOD
Learn about how to upload and change permissions in htaccess files.
Last Updated
Enable SSI
Learn about Server Side Includes and how it's configured using an htaccess file.
Last Updated
Deny via IP
Learn about how to deny specific IP addresses in .htaccess files.
Last Updated