How do I process .html as .php?

Asked by:
Nate
Time:
2011-10-21 3:02 pm
Category:
How To
Hits:
829
I tried adding the following to .htaccess:

AddType application/x-httpd-php .html

I also tried creating an apache handler 'cgi-scipt' for .html files.

I confirmed that test.php file is processed as php in the same directory.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
2011-10-21 3:43 pm
Hi Nate,

I'm glad to hear you were able to sort this out. Our servers run PHP as a cgi module (SuPHP) which calls for the AddHandler directive instead of the AddType directive.

Please let us know if you have any additional questions or need any further assistance.

Thanks,

Christi N.

You must login before you can post a comment about this answer.

Like this Question?

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.