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:
  1. What is it?
  2. Example

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.


References:

  1. MozDevNet (no date) Apache Configuration: .htaccess – Learn web development: MDNMDN Web Docs. Available at: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Apache_Configuration_htaccess (Accessed: 6 September 2024).

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.