.htaccess

Why Trust Techopedia

What Does .htaccess Mean?

The .htaccess file is a configuration file for the Apache HTTP Server that allows administrators to specify options for individual directories. The syntax is exactly the same as Apache’s other configuration files. The file is placed in the directories where the web pages are served, to give finer-grained controls than the system-wide configuration file, httpd.conf.

Advertisements

Techopedia Explains .htaccess

The .htaccess is a plain text configuration file for the Apache HTTP Server that allows administrators to specify options for directories where web content is served. The initial “.” in .htaccess means that the file will be invisible on Unix-like systems in directory listings except with the “ls -a” command. The syntax for the file is exactly the same as the system-wide httpd.conf configuration file. The .htaccess file is placed in the directory where the administrator wants to override Apache’s settings.

The Apache Foundation recommends against using .htaccess when a user has access to the system-wide file as using it can slow down the web server.

Advertisements

Related Terms

Margaret Rouse
Technology Expert
Margaret Rouse
Technology Expert

Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.