How do I process .html as .php?

Asked by:
Nate / 8 Points
Time:
2011-10-21 6:02 pm EST
Category:
How To
Hits:
1,179
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.

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by Web Hosting Hub staff

0

ChristiNi
Staff
13,688 Points
2011-10-21 6:43 pm EST
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.

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help 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.
}