Welcome to WebmasterWorld Guest from 107.20.34.173

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess AddType problem

Bringing up a download box

     

sanblasena

4:42 pm on Jun 21, 2003 (gmt 0)

10+ Year Member



Hello,

I wanted to use AddType in .htaccess so I could use PHP includes in HTML files. On one of my servers it worked fine. On the other server it is bringing up a download box when I access the page. Any ideas?
Thanks, Patricia

DrDoc

7:45 pm on Jun 21, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



What does the line in .htaccess look like?

sanblasena

2:54 am on Jun 22, 2003 (gmt 0)

10+ Year Member



The line is

AddType application/x-httpd-php .html .htm

Patricia

jdMorgan

3:10 am on Jun 22, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Patricia,

Which server is that from the working one, or the non-working one? And what does the other server's AddType line look like?

More detail = better/faster help.

Jim

sanblasena

3:47 am on Jun 22, 2003 (gmt 0)

10+ Year Member



I used the exact same code on both servers.

Patricia

jdMorgan

4:10 am on Jun 22, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Have you tried this?

AddType application/x-httpd-php .html .htm .php

I also found a bug report which may bear on your problem here [phpbuilder.com].

HTH,
Jim

sanblasena

4:57 am on Jun 22, 2003 (gmt 0)

10+ Year Member



Thanks, I tried that, same problem. I ran accross this theme several times in trying to research this problem.

"Since servers can't parse for BOTH SSI and php, this resulted in the download-prompt problem."

This "download-prompt problem" is exactly what I am getting but my htaccess does not request that it parse SSI. I wonder if some option is set on the server to parse SSI? Patricia

Marcia

5:08 am on Jun 22, 2003 (gmt 0)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I just had the same thing today. PHP (hello world) worked fine with just that in .htaccess but did the download thing with the shtml/html thing. Took that out and it stopped.

In fact, I was going to bring up a question in a thread that could relate to Patricia's case, might as well get to it now.

What if we want to use PHP on a site - but want to run a log program that uses ssi? What do we do if we can't use both?

jdMorgan

5:09 am on Jun 22, 2003 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



...Could be.

You could try adding:


Options -Includes

to your web root .htaccess and see if that changes anything.
You may need to find out what is going on in the server config to solve this one...
If they've got an AddHandler server-parsed of any kind, that may interfere with what you are trying to configure.

Anybody else got any ideas?

Jim

sanblasena

3:44 pm on Jun 22, 2003 (gmt 0)

10+ Year Member



I found this old post that might be helpful in my case - I only want to do PHP.

[webmasterworld.com...]

I havent tried it yet. I'm a little bit over my head.

Patricia

 

Featured Threads

Hot Threads This Week

Hot Threads This Month