richcleverley
MIS
Hi,
I have a added an .htaccess file to a folder on my server to parse html files as php (I need this for a client who's site I am redeveloping with php but he has a load of page specific advertising which he wants to still work).
The .htaccess file I have created has the following line in it
and the html file in the directory is just a basic php test file
However, when I try to access the file I get a 500 error.
Any ideas what is going wrong with this?
I don't want to use redirects really, just want the html files to parse as php
Thanks,
Richard
I have a added an .htaccess file to a folder on my server to parse html files as php (I need this for a client who's site I am redeveloping with php but he has a load of page specific advertising which he wants to still work).
The .htaccess file I have created has the following line in it
Code:
AddType application/x-httpd-php .php .html
Code:
<?
echo "tested correctly";
$test = "working";
echo $test;
?>
However, when I try to access the file I get a 500 error.
Any ideas what is going wrong with this?
I don't want to use redirects really, just want the html files to parse as php
Thanks,
Richard