How can I specify file types for PHP to handle?

This FAQ was last modified on: Tuesday, January 16, 2018 09:29pm

Previously on Metro (the old hosting server), the method for telling the web server what file types to have PHP handle, was the AddType directive.  Since WebHosting uses FastCGI instead of mod_php, this directive has changed. You still need to include this in your .htaccess file, but now the PHP file type handler is called AddHandler and the script is php5-script.  Here's a complete example: 

AddHandler php5-script .php .html .htm .xml