Shared hosting

How to enable PHP for unusual extensions (htm, html)?

2018-12-24

If your PHP code is in files with the .htm or .html extension, allow them to run as PHP in the site settings:

  1. Open "WWW" -> "WWW domains" -> your site.
  2. On the "Site" tab, in the "Extra PHP extensions" field, list the extensions separated by spaces, for example htm html.
  3. Save the changes.

How to enable PHP for unusual extensions (htm, html)?

After that, files with these extensions run as PHP. For .shtml and SSI, use the "Server-side includes (SSI)" and "Extra SSI extensions" fields.