sazzie Posted April 4, 2007 Share Posted April 4, 2007 Can someone please tell me how to get Apache to pass html, with or without embedded php code, through the php preprocessor before sending the output to a webbrowser? Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 4, 2007 Share Posted April 4, 2007 Add .html to the end of the following line should do it, seperated by a space: AddType application/x-httpd-php .php So the above line to this: AddType application/x-httpd-php .php .html That will now pass .php and .html files to the PHP preprocessor. Save the httpd.conf and restart Apache. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.