Search Engine: Elastic

Article ID: 115493, created on Feb 1, 2013, last review on Sep 15, 2016

  • Applies to:
  • Operations Automation


A customer with Linux Shared Hosting subscription would like to have non-standard extension for their PHP scripts to add extra security to their websites. E.g. a customer wants to process .html files as PHP scripts.


The desired configuration may be achieved through .htaccess file which customer may create in their webspace e.g. using File Manager in POA Customer Control Panel or upload the file using FTP access.

To make files with certain extension(s) be processed by PHP the following directive should be added to the .htaccess file:
AddType application/x-httpd-php .<extension> where <extension> is the desired extension for PHP files. For instance, to have all files with '.html' or '.htm' extensions processed by PHP engine, the directive would look like this:
AddType application/x-httpd-php .htm .html
All PHP files must be renamed with '.html' or '.htm' extensions for this to work properly.

Additional information can be found on PHP website:

caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF