Enabling Parsing and Processing of PHP code in Files With .html Extensions for GoDaddy.com Hosting Accounts

There are times when a web master will want to have the default file extension for a given website stay consistent regardless of how the files are preprocessed on the server-side or what server-side scripting language is being used.

To set up your GoDaddy.com 4GH, Linux hosted account to parse PHP code in .html files, do the following:

  1. Log in to your account.
  2. Go to the control panel for the web site in question.
  3. In the control panel click on the ‘Settings’ sub-section.
  4. Click on the ‘File Extensions Management’ icon/link.
  5. Click on the ‘Custom Extensions’ link in the left-hand column.
  6. Click on ‘New Extension’ in the upper right of the page.
  7. Enter ‘.html’ for the extension, and select ‘PHP 5.x.x’ from the drop-down.
  8. Click ‘OK’

Once you click the ‘OK’ button you can now add PHP code to your .html files.

Leave a Reply