Modifying HTTP headers
The Apache configuration on hosting.com servers includes the mod_headers module. This means that you can easily add, modify, and delete HTTP response headers by using the Header directive in an .htaccess file.Adding a header
To add a custom header to the HTTP response headers, use the set or append option. The set option sets the specified header and replaces any header that has the same name. Alternatively, the append option sets the header if it does not already exist. If the header already exists, however, the append option adds to the existing header value. For example, the following sample configuration demonstrates how to set a header and append to a header:Editing a header
To edit a header, use the edit option. With the edit option, you can use regular expressions to do search-and-replace operations on header values. For example, the following sample configuration demonstrates how to do a simple search-and-replace operation on a header:The Header edit option runs before any application-generated headers. Therefore, if you are trying to modify a header that is generated by an application (for example, WordPress or Drupal), you should use the Header always edit option instead. This option ensures that Apache modifies the headers after an application generates them.