.htaccess is a configuration file for use on web servers running the Apache Web Server software.
.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.
A preconfigured htaccess file (htaccess.txt) is delivered with Joomla. It contains instructions to avoid common exploits and implements SEF urls. In addition it provides some settings that needs to be checked for your environment:
- Options +FollowSymLinks
- RewriteBase /
Activating htaccess.txt means merging an existing .htaccess with htaccess.txt and decide on the two settings mentioned above. Note: The active file is set in one of the httpd.conf files with: AccessFileName .htaccess. It defaults to .htaccess, which makes it hidden on a linux filesystem. No need to change that.