.HTACCESS File Extension
Apache HTACCESS File
Learn about .HTACCESS files and view a list of programs that open them.
What is a .htaccess file?
Learn about .HTACCESS files and view a list of programs that open them.
Properties
More Information
A website's .htaccess file can be used to perform several important functions, including:
Defining the index page of a directory (i.e. "index.html" or "index.php")
Specifying the 404 (Page Not Found) error page
Performing 301 or 302 page redirects
Denying access from specific IP address or other websites
Restricting access to certain directories and pages
Executing MOD_REWRITE instructions
The .htaccess file is always named .htaccess and does not include a filename before the dot. It is placed in the root directory of a website and is processed by the web server each time a webpage is accessed.
The Apache .htaccess Tutorial includes additional information about how and when to use .htaccess files.
Technical Details
A website's .htaccess file can be used to perform several important functions, including:
Defining the index page of a directory (i.e. "index.html" or "index.php")
Specifying the 404 (Page Not Found) error page
Performing 301 or 302 page redirects
Denying access from specific IP address or other websites
Restricting access to certain directories and pages
Executing MOD_REWRITE instructions
The .htaccess file is always named .htaccess and does not include a filename before the dot. It is placed in the root directory of a website and is processed by the web server each time a webpage is accessed.
The Apache .htaccess Tutorial includes additional information about how and when to use .htaccess files.
How to open .htaccess files
Because .htaccess files are plain text files, you can open and edit them with any text editor. To learn how to use an .htaccess with an Apache web server, refer to the Apache .htaccess Tutorial.
Programs that open .htaccess files:
Quick Facts
- File Extension
- .htaccess
- Developer
- N/A
- File Type
- Apache HTACCESS File
- Last Updated
- 2025-11-02T02:43:26.519Z