This document describes what .htaccess is and does.
What is .htaccess?
.htaccess is a kind of file that gives Apache, the web server, instructions about what to do when people load your web pages, directories, or other files in a web browser. It is a powerful tool used to customize the behavior of your website, and looks more confusing than it really is.
How do I create an .htaccess file?
The usual way is to create a text file on your local computer, put the commands you want in it, save and upload it to your account. Put it in the directory you want (usually in your account's root folder if you want it to affect your whole website), then rename it to ".htaccess".
Some SFTP clients won't show hidden files by default (any file starting with "."). You'll need to change that setting in the SFTP client's preferences menu.
Other .htaccess Variables
This lists some of the variables you can put into your .htaccess file.
For more information, please find the Apache documentation here:
You can also find a thorough description of everything you can do with .htaccess here: