The .htaccess file running on Apache makes a powerful tool to allow you to modify your Apache configuration at the directory and subdirectory level. htaccess File on Apache make cancellation the Apache global and virtual host settings. By this htaccess, you can alter your website’s configuration without changing server configuration files.