benji87 Posted December 11, 2007 Share Posted December 11, 2007 Hi all. I recently had to change servers from linux to windows as i was having a load of problems with php and the easiest way to fix it seemed to be changing over. Now ive done this is cant seem to parse php in html files anymore.. ive still used the same .htaccess file but it just doesnt seem to work. Here is my htaccess code RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Can someone help? Thanks Quote Link to comment Share on other sites More sharing options...
~n[EO]n~ Posted December 11, 2007 Share Posted December 11, 2007 Does your Windows Hosting support PHP, I think it must be configured on IIS. Better you talk to your host. Quote Link to comment Share on other sites More sharing options...
benji87 Posted December 11, 2007 Author Share Posted December 11, 2007 Well i can run php scripts fine its just parsing php in html thats the problem. Quote Link to comment Share on other sites More sharing options...
altgamer Posted December 11, 2007 Share Posted December 11, 2007 I can shed a little light on this... From my own experience, and as far as I'm aware, Windows servers, or when using IIS, the htaccess files are more or less, useless. Windows/IIS doesn't recognize or use htaccess files. I don't know if you have a dedicated, or are on a shared host, etc.. but if I recall, you'll need either a application extension added (extension, executable path, verbs), so that iis knows to use php for .html and .htm. Also if I recall, you may need to change the .html / .htm mimetypes on iis from "text/html" to "application/x-httpd-php" I believe. (without quotes of course) Depending how the server your on is setup, you may only need the mimetype, or may only need to change the application extension, or perhaps both. Hope this helps. -alt Quote Link to comment Share on other sites More sharing options...
benji87 Posted December 11, 2007 Author Share Posted December 11, 2007 Ok thanks for your help. Im on a shared host so i will look into it. 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.