Page 1 of 1

XHTML not workin

Posted: Thu Sep 10, 2009 8:31 am
by asela_05085
hi,

recently i was able to disable PHP in some folders by adding below lines in httpd.conf file

<Directory "/var/www/html/wap/xhtml">
php_admin_flag engine off
</Directory>

now i'm facing new problem.
when i access xhtml files in the PHP disabled folders, instead of loading the page it downloads
so in some browsers get the error as cannot download this file

what can i do to avoid this and enable xhtml in those folders

pls help

Re: XHTML not workin

Posted: Thu Sep 10, 2009 2:16 pm
by Darhazer
Probably the handler for .html is php
You should change the handler. Of if the XHTML pages are with .php extension - change the extension...

Re: XHTML not workin

Posted: Thu Sep 10, 2009 11:29 pm
by asela_05085
i have sorted the below issue by adding the below line in httpd.conf folder
AddType application/xhtml+xml .xhtml

:D