.htaccess

.htaccess (come from hypertext and access) is a configuration file, used by the web server Apache. This is a text file that could be created with a text editor. .htaccess file has a recursive action, i.e. it applies to the directory, where it is located and for all its sub-directories. .htaccess file must begin with the sign “point”.

The main functions of .htaccess file are:

• Allow/Forbid opening of a page for specific IP addresses;
•  Allow/Forbid displaying of a list of files in a directory and allow changing of the appearance;
• Allow access to a directory, only after entering a valid username and password (use additional file storage of passwords);
• Can set redirection to another URL address;
• Can set rules for rewriting the URL addresses (mod_rewrite);
• Can allow/forbid access to certain files;
• Can change the index file of the directory;
•  Can change the error messages of Apache (404, 500, 401, 403) and others.

  • 92 Users Found This Useful
Was this answer helpful?

Related Articles

reCapcha doesn't work on my WordPress site. How to fix it?

Question: I have some issues with my reCapcha on my WordPress site, how to fix it. It was just...

Is it possible to get a dedicated IP address for my webpage?

Question: Hello, Is it possible to get a dedicated IP address for my webpage? (I am planning to...

Problem with PHP WordPress memory

Question: I'm trying to increase the php memory limit to 128Mb in order to keep Woocommerce...

Ad banner module does not work in my host

Question: I installed an ad banner module, but gave me the following message:ForbiddenAccess to...

I can't access to my WP installation

Question: After copying the new site files to de main directory, I can not login into my...