.htaccess is a type of computer file for the configuring of some web servers. .htaccess files can be used to create custom error pages, or to prevent visitors from directly linking pictures, also known as hot-linking to their own sites, costing the website owner bandwidth and therefore money.