What is an .htaccess file and why is it needed?
Features of the .htaccess file
Redirection (redirect)
Barring web access / ban on IP
Some tips for working with the .htaccess file
What is a .htaccess file and what is it used for?
.htaccess - is a special configuration file of the apache web server, that gives you a possibility to change the apache web servers settings for separate folders, without access to the main configuration file.
A file .htaccess can be created in any catalogue and it`s settings will affect all the files in this catalogue and all its subcatalogues.
File .htaccess features
Main file parameters:
- Sim…