Welcome to WebmasterWorld Guest from 54.147.134.218

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess AddType problem

Bringing up a download box

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

Junior Member

10+ Year Member

joined:Jan 30, 2003
posts:63
votes: 0


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

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

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 0


What does the line in .htaccess look like?
2:54 am on June 22, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 30, 2003
posts:63
votes: 0


The line is

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

Patricia

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

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

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

Junior Member

10+ Year Member

joined:Jan 30, 2003
posts:63
votes: 0


I used the exact same code on both servers.

Patricia

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

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


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

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

Junior Member

10+ Year Member

joined:Jan 30, 2003
posts:63
votes: 0


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

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

Senior Member

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

joined:Sept 29, 2000
posts:12095
votes: 0


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?

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

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


...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

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

Junior Member

10+ Year Member

joined:Jan 30, 2003
posts:63
votes: 0


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members