First, excuse my web-illiteracy. Trying to do something that is probably simple, but cant figure it out... I have a website that was originally created in straight HTML - awhile ago.
I want to start including some PHP script onto the pages. So, the only way I know to do this is to save the pages with the php extension (i.e. "something.php"). But, the problem with that, is that I have so many pages, and there are so many links I would have to fix. However, if I am correct, there are some other ways to do this...
Can I have the server treat the HTML pages as PHP? Or read the html extention as is if it is a php document? How would I go about doing this?
I see that people are claiming this question has already been asked. Most people suggest adding this to my htaccess file:
AddType application/x-httpd-php .htm .html
But when I do that, and go to a page on my site, my browser starts to download the file (so if I go to my homepage, my browser automatically starts to download index.html)
RESOLVED
I figured this out. It is on a GoDaddy server (who I hate). In order to get this to work, you need to add some information (and wait a little bit for it to take effect) ...
Options +ExecCGI
AddType application/x-httpd-php .php .htm .html
AddHandler x-httpd-php5-cgi .php .htm .html
I hate Godaddy. I've had this happen with other server issues - a simple solution wont work, and GoDaddy servers require "special" care.