The .htaccess is a hidden file usually kept in the root directory of a web application that stores information and provides more control over the web hosting server. Some server applications can be accessed with .htaccess files, and the information that is entered can also control who can visit a website or server. .htaccess can also help to control what “bots” or programs can surf a website as well. Most websites have a need for a .htaccess file to perform additional functions or to enhance security. .htaccess has a specific language that is required to make necessary changes to the file. You can access the .htaccess file through either your FTP program or the file manager. The period is what identifies the file as hidden (with Linux web hosting architecture).

Below is an example of an .htaccess file:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+)\.pdf$  /cgi-bin/pdf.php?file=$1 [L,NC,QSA]

For more information on the .htaccess file and possible uses, please see: