What is htaccess ? The .htaccess file in Drupal is Powerful configuration file for web server. The .htaccess file loaded and executed when Apache server starts. .htaccess file in Drupal is used for varied functionalities such as Authentication, Redirect pages, Rewrite URL ,Directory Index and Limit access etc.