Serving html files as php

Status
Not open for further replies.

relay162

Member
Prime Account
Messages
67
Reaction score
1
Points
8
This only applies if you want your html files to be served as php. After the upgrade to LiteSpeed you will need to change in your .htaccess files this:

AddType application/x-httpd-php5 html

to this:

AddType application/x-httpd-php html

I hope this is useful.
 

stpvoice

Community Support Rep
Community Support
Messages
5,987
Reaction score
212
Points
63
Hello,

Thanks for the contribution, however this should happen automatically with a .php extension provided the code to be parsed is within <?php ?> tags.

Thanks.
 
Last edited:

relay162

Member
Prime Account
Messages
67
Reaction score
1
Points
8
Yes, I understand. This applies only if you want your .html files to be parsed as php.
 
Status
Not open for further replies.
Top