homepage Welcome to WebmasterWorld Guest from 54.196.195.158
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
.htaccess AddType problem
Bringing up a download box
sanblasena




msg:1524378
 4:42 pm on Jun 21, 2003 (gmt 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

 

DrDoc




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

What does the line in .htaccess look like?

sanblasena




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

The line is

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

Patricia

jdMorgan




msg:1524381
 3:10 am on Jun 22, 2003 (gmt 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

sanblasena




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

I used the exact same code on both servers.

Patricia

jdMorgan




msg:1524383
 4:10 am on Jun 22, 2003 (gmt 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

sanblasena




msg:1524384
 4:57 am on Jun 22, 2003 (gmt 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

Marcia




msg:1524385
 5:08 am on Jun 22, 2003 (gmt 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?

jdMorgan




msg:1524386
 5:09 am on Jun 22, 2003 (gmt 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

sanblasena




msg:1524387
 3:44 pm on Jun 22, 2003 (gmt 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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved