Website Hosting for Just 20 ForumCoin ~ Advertise on ForumCoin
52 Life Tips Banner
Webmaster forum. Website development, design & management. Graphic design. Blog / Forum Set-up, Management, Admin & News

Parsing html as php

Postby niche » 25 Dec 2016, 01:21

The original .htaccess code for Parsing html as php for a webhosting company
AddHandler application/x-httpd-php5 .html .htm is not working
The customer support has suggested
AddType application/x-httpd-php .html .htm, which is also not working
Does any know any version of .htaccess code which will work
  • 0

niche
Banned
 
Posts: 1,004
Location: Asia
Referrals: 1
ForumCoin: 957

Re: Parsing html as php

Postby CyberFreak » 26 Dec 2016, 10:32

Your host should know their setup better than anyone else so they should be able to give the correct version. Out of curiosity why do you want to do this anyway? There probably is a better way to do what you want to do than parsing html as php.
  • 0

User avatar
CyberFreak
Tech Admin
 
Posts: 4,170
Location: UK
Referrals: 32
ForumCoin: 45,431

Re: Parsing html as php

Postby niche » 29 Dec 2016, 03:53

These are static html websites, and some ad code has to be included on all the inner pages. The webhost is not giving a proper reply despite updating the ticket repeatedly
  • 0

niche
Banned
 
Posts: 1,004
Location: Asia
Referrals: 1
ForumCoin: 957

Re: Parsing html as php

Postby skysnap » 11 Feb 2017, 06:41

If you save static HTML file as .php extension. It should serve normally. You don't have to write code for this. If you have wordpress then you don't have to do this. If you have solo HTML pages, then save it as .php and also link in between them as .php while editing.
  • 0

User avatar
skysnap
 
Posts: 27,604
ForumCoin: 400



Your Ad Here.

Return to Webmaster Questions, Discussion & News



Who is online

Users browsing this forum: Claude [Bot] and 0 guests

Reputation System ©'