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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.