Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

some other programer before me made some changes on server, and now if i call html files, they are treated as php.

if html file like that have included css it is also treated as php, and it makes problems... they tryed to connect to mysql database, despite the thing that in those css are no line of php...

can you give me some advice what to check, or to set (ie. in .htaccess) to escape that?

thank you in advance!

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Look for AddType, as in AddType application/x-httpd-php .php .html.
To undo this, use AddType text/html .html. That can be done in a .htaccess file according to the Apache documentation

share|improve this answer
    
i need that html is parsed as php. but is it possible to set that css is parsed as css? –  user48058 Aug 28 '10 at 11:32
    
You should alter DefaultType` text/plain` if your CSS get interpreted as HTML. That's usually defined in httpd.conf. –  Lekensteyn Aug 28 '10 at 19:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.