I have html files on my site. I want server to process html files as php. In htaccess I added line as below.... ForceType application/x-httpd-php AddType application/x-httpd-php .html It is not working. After adding aforementioned lines in htaccess file is getting download instead of getting opened as webpage. Note: In html file i have added some php code.
Hello, Instead of AddType, you may want to try AddHandler. Remove the ForceType/AddType and add this: AddHandler application/x-httpd-php5 .htm .html
I did add those lines. Files are being processed and displayed as web page, however it does not include the file. In html file i have added below code.... <? include('index-related.html'); ?> It is not calling that file.