Problems with Apache parsing html as php

hezuo

New Member
Messages
174
Reaction score
0
Points
0
Hi guys,
I've been using this code to parse html as php (so php code can load in html pages)
this is how my .htaccess looks like

HTML:
AddType application/x-httpd-phpv2 .htm .html 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cesarpcriot/blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /cesarpcriot/blog/index.php [L]
</IfModule>
the ifmodule is added automatically by wordpress, but it used to work perfectly until a week ago. now, when i try to open my index.html file, the browser tries to download the file rather than showing it. Please gimme a hand. By the way, my site is http://cesarjosue.pcriot.com
 

nightscream

New Member
Messages
948
Reaction score
0
Points
0
what about just add this to htacces
AddType application/x-httpd-php .php .htm .html
 

hezuo

New Member
Messages
174
Reaction score
0
Points
0
Thanks, nightscream, I've tried that; unfortunately, it doesn't work either. Is there anything else I can do? Thanks for your he help
 

nightscream

New Member
Messages
948
Reaction score
0
Points
0
what about, delete your old htaccess, create a new one and add this

AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php .php .htm .html

Then upload the new one.
 
Last edited:

hezuo

New Member
Messages
174
Reaction score
0
Points
0
Unfortunately, the same thing happens. Do you think it can be a server problem?
 
Top