Process PHP on HTML pages or other pages on Cloud Sites
You can cause PHP to be processed on HTM and HTML pages by setting those extensions to be served by the PHP handler. You can enable PHP processing on .htm and .html files in your .htaccess file with the following directives:
AddHandler application/x-httpd-php php htm html AddType text/html php
Following the preceding example, if you wanted to process PHP on files with the .test extension, you would use the following code:
AddHandler application/x-httpd-php php test AddType text/html php
You can find more information about
Note: We recommend using just the .php extension for PHP pages.
Continue the conversation in the Rackspace Community.
©2016 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License