secretply2
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 1
I'm having issues trying to view my website with php code in html files. I have added the following condition to the .htaccess file:
When I try to view the website, it just downloads a file and nothing is shown. I also tried using the following:
The same thing happens as well. I've done this on a different website before from a different host so I'm not sure why it is not working here.
Code:
<FilesMatch "\.(html|htm)$">
ForceType application/x-httpd-php5
</FilesMatch>
When I try to view the website, it just downloads a file and nothing is shown. I also tried using the following:
Code:
AddType application/x-httpd-php5 .html .php
AddHandler application/x-httpd-php5 .html
AddDefaultCharset utf-8
The same thing happens as well. I've done this on a different website before from a different host so I'm not sure why it is not working here.