Forum Moderators: phranque
AddHandler server-parsed .html
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Now I have just got a dedicated server from a UK ISP and want to move the site over, the above code doesnt work on freebsd, does anyone know if it will run or what changes need making to the http.conf file to make it work.
Thanks
The RemoveHandler directive removes any handler associations for files with the given extensions. This allows .htaccess files in subdirectories to undo any associations inherited from parent directories or the server config files.
If I remove that line it tries to download the page rather than show it.
The page is a .htm extension and on it I have
<!--#echo var="DATE_LOCAL" -->
<?php phpinfo();?>
Now the funny thing is, if I remove the remove handler and hit refresh it shows me the ssi date etc but not php, if I hit enter to recall the url it shows the ssi but then tries to download the page.
Do you think the server httpd.conf file has something missing? to run php within html, what needs to be added?
Thanks for your help