Many web hosting providers, offer access to a file called .htaccess – hypertext access. This “dot” file (the name begins with a “.”) when placed in a particular directory provides the ability for customization of the configuration of certain requests to that particular directory and it’s subdirectories. Following are the most common uses of the .htaccess file:
redirect /file.html http://www.somesite.com/
The above command instructs to redirect a user to a specified URL.
While .htaccess offers incredible flexibility in configuring your websites, it is also should be noted that use of this file can result in performance loss and may cause some security issues if not configured properly.
If you know of any other uses of .htaccess file, feel free to voice them in the comments.