Use distributed configuration files (.htaccess)

Last modified: 16 September 2022

IntelliJ IDEA provides syntax highlighting, formatting, code completion and documentation lookup while editing distributed configuration files.

Distributed configuration files are used to make directory-based changes to the HTTP Apache Server configuration and usually have the name .htaccess.

If you are using a file with the name .htaccess, IntelliJ IDEA recognizes it as distributed configuration file and provides full coding assistance for it, so no additional steps are required from your side.

If you want to use a file with another name, you need to associate this full name or the corresponding pattern with the distributed configuration file type. After that, IntelliJ IDEA will treat any file with the name matching the specified pattern as a distributed configuration file and process it accordingly.