The .htaccess is a file that can be placed in any directory of your website (normally the root directory) to give the Apache Web Server instructions such as how to respond to particular requests.

Using this .htaccess generator you can create rules for redirecting directories and files, define the locations for your error pages and prevent people from hotlinking to image files.