Using Distributed Configuration Files (.htaccess)
On this page:
Distributed configuration files are used to make directory-based changes to the
HTTP Apache Server configuration and usually have the name
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.
Associating a name pattern with the distributed configuration file type
To associate a name pattern with the distributed configuration file type
- Open the Settings/Preferences and click File Types.
- In the File Types page that opens, select Apache config files from the Recognized File Types list.
- In the Registered Patterns area, click .
- In the Add wildcard dialog box that opens, specify the pattern that defines the extensions of your distributed configuration files.
- Click OK. IntelliJ IDEA returns you to the File Types page where the specified pattern is added to the Registered Patterns list.
Please note the following:
- By default, the Registered Patterns list contains one item
- To discard a pattern, select it in the list and click the Remove button.
- To change a pattern, select it in the list, click the Edit button, and update the pattern as necessary in the Add wildcard dialog box that opens.