cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 I have a site with a lot of preexsisiting links/pages that are of the .htm, .html extension but they need my basic php functions added to them. Anyone know how i can get them read as .php without having to rename every page and link? Link to comment https://forums.phpfreaks.com/topic/57322-how-to-get-htmlhtm-extensions-read-as-php/ Share on other sites More sharing options...
per1os Posted June 26, 2007 Share Posted June 26, 2007 If you are running apache locate the line in httpd.conf that is similar to this: application/x-httpd-php php and change it to this: application/x-httpd-php .php .html .htm If you do not have apache, I am not sure how to do it with IIS, if you do but do not have/do not want to restart the server you can try creating a .htaccess file and adding this: AddType application/x-httpd-php .html .htm Hope that helps. Link to comment https://forums.phpfreaks.com/topic/57322-how-to-get-htmlhtm-extensions-read-as-php/#findComment-283434 Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Author Share Posted June 26, 2007 yeah i'm on 1&1 hosting and i tried taht in my .htaccess file (it was 0 bytes before) and now its coming up goofy on my index page Link to comment https://forums.phpfreaks.com/topic/57322-how-to-get-htmlhtm-extensions-read-as-php/#findComment-283446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.