Jump to content

.htaccess Problems... .php Code Showing In Html


Recommended Posts

Hi

 

I'm doing some maintenance on an old site of mine and I have noticed that PHP code that I have had in some .htm/.html pages is showing through to browser. I checked the .htaccess in the www directory of my cpanel and it shows that I have the following:

 

>#AddHandler application/x-httpd-php .htm .html
#AddHandler application/x-httpd-php5 .php .html .htm
AddType application/x-httpd-php52 .php

 

I updated the .htaccess with

>AddType application/x-httpd-php .htm

 

But that does not correct the problem.

 

Any ideas on what I need to do?

 

Thanks!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...