Hello,
I am hosting my .net domain with AwardSpace which is a free webhost provider. I am also hosting my .com with GoDaddy and the support is really so excellent that I had to rely on experts here to solve my problem.
I have loads of html which have PHP code embedded in it. I use php in html to include various header and footer files. It is impossible for me to change all of these to .php now as I have many files.
One of the file http://www.indianorphanages.com/admin/listmessages.html is not working while an exact copy in PHP extension http://www.indianorphanages.com/admin/listmessages.php works.
This is the environment on GoDaddy.
.httpd.conf access and mofidication is not allowed.
.htaccess is allowed.
PHP runs in cgi mode. The sapi_info is as below(You can check it on http://www.indianorphanages.com/admin/cgitype.php)
PHPinfo can be found at http://www.indianorphanages.com/admin/phpinfo.php
I added this line in the .htaccess and I still get the PHP as it is without being parsed
AddType application/x-httpd-php .php .html
I have searched the web and tried all possible combinations but it doesn't work.
AddHandler server-parsed .php .html - Doesn't work 😕
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html - Doesn't work :mad:
Can someone please help? Thanks a ton for your directions.
Regards
iON Admin