Forum Moderators: coopster
I want to parse some .htm files in a subdirectory as php.
To do this I made a .htaccess with online the line:
AddType application/x-httpd-php .htm
in it and uploaded it to the directory with the files I want to parse as php in.
If I now open one of the files it does not parse the file as php instead a window opens telling me a Download-Window opens asking me if I want to save the file on my HDD or if I want to open it with some application.
I got this thing to work some weeks ago but by incident I deleted the .htaccess and with the new one it doesn't work.
I hope someone can help me here!
Thanks a lot,
Torsten
thanks for your help.
Unfortunately your solution doesn't work.
Now nothing happens at all, the .htm file open without being parsed at all. So the "download"-Window doesn't appear anymore but the file opens unparsed.
There must be a possibility to get this working.
I just redesigned our site. During the initial test phase I managed to get this stuff working but when I uploaded the new version of our site yesterday I unfortunately deleted teh .htaccess that worked and now I don't find the correct way anymore.
What I still remember ist that I only had one line in the working .htaccess... and it looked very similar to the one in my original post and to the one proposed by you...but there must a little difference...
I hope some of you hear will find this little difference because getting this to work is one essential part of our redesign...
Thanks a lot for you continuing help....and sorry if my English is a bit strange...it became kind of rusty in the last years because I don't speak as much English anymore as I used to do in the past....
Torsten
the extension is .htm.
Would it be possible that I send you a PM with more details (which I'm not allowed to post on the board) and maybe also the access information to our server that you could just take a look at it? Maybe that shows everythiung clearer and easier to find a solution!
Thanks a lot for your support so far!
Torsten
I did not intend to aks you to do this at once: My request was just in general. So if it would be possible someday next week or so would be ok, too, there is no need to hurry.
If somebody tries to help me of course the helping person can choose the time!
I wish you lots of fun in the garden.
Unfortunately it raining where I live....so I can stick to my work :-(
Torsten