While critical server configuration is done in the httpd.conf file, Apache HTTP Server’s .htaccess file is a configuration file offering additional options at a directory level.
In this tutorial:
Required knowledge:
What is it?
“Apache .htaccess files allow users to configure directories of the web server they control without modifying the main configuration file.” [1]
It is a plain text file editable with any text editor.
It is a good idea to back up an existing .htaccess file before editing it.
Example
See the How to Disable Directory Browsing in WordPress tutorial.
References:
- MozDevNet (no date) Apache Configuration: .htaccess – Learn web development: MDN, MDN Web Docs. Available at: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Apache_Configuration_htaccess (Accessed: 6 September 2024).