PHP no longer works with html
I have a website that is mainly composed of html web pages. To allow me to use php in them, I added some parsing code in my .htaccess file. A few days ago php somehow stopped executing and I still don't know why. I've searched a few things and tried several different types of parsing code, but nothing seems to work. At the moment I have this line in my .htaccess file:
AddType / x-httpd-php.html.htm application
I noticed one thing, but php works fine on http://turkishbasics.com (my site's home page), but doesn't work at all for any other directories like http://turkishbasics.com/index.html or / contact. html
I contacted the hosting company, the guy mentioned something about Apache.?
How can I solve this problem?
thank
source to share
To free PHP code, you need to write it to a php file (.php). Then execute the file on the server.
You cannot execute php code from html file (.html)
I think when you execute http://turkishbasics.com it takes http://turkishbasics.com/index.php
source to share