What is .htaccess?
Definition.htaccess is a directory-level configuration file used by the Apache HTTP Server, and some compatible web servers, to control settings such as redirects, URL rewriting and access restrictions for a website.
The name is short for hypertext access, and the leading dot makes it a hidden file on Unix-like systems. An .htaccess file placed in a directory overrides the main Apache configuration for that directory and everything below it, without restarting the server. That lets site owners on shared hosting change things they otherwise couldn't, such as adding redirects, password-protecting a folder, setting cache headers or blocking certain visitors.
WordPress and many other applications use .htaccess with Apache's mod_rewrite module to create clean permalinks. Because the server has to look for and read these files on every request, they can slow sites down, and servers such as nginx don't support them at all. Some hosts, including WP Engine, have replaced .htaccess with their own rules tools.
.htaccess resources
Topic: Hosting, CDNs and performance
Cite this definition
- APA
What is .htaccess? (2026, November 22). Glossary. https://glossary.io/htaccess/
- MLA
“What Is .htaccess?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/htaccess/.
- Chicago
“What Is .htaccess?” Glossary. Coywolf. November 22, 2026. https://glossary.io/htaccess/.
- HTML link
<a href="https://glossary.io/htaccess/">What is .htaccess?</a>
Published