iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2008, 04:26 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Question with index.html OK, wihout downlaad

If I request my own sites without ..../index.html I get asked if I want to download, with the ..../index.html part the site displays without an issue.

What daft thing am I doing wrong

This is in IE6
Reply With Quote
  #2 (permalink)  
Old 10-08-2008, 05:45 AM
WebProWorld Pro
 
Join Date: Dec 2007
Location: Brussels, Belgium
Posts: 164
Jean-Luc RepRank 2
Default Re: with index.html OK, wihout downlaad

What is the address of the site ?

Jean-Luc
__________________
Checking redirects made easy | | Professional AWStats Services
Reply With Quote
  #3 (permalink)  
Old 10-08-2008, 09:05 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

Using IE 6

A Great Portal, Great links to great web sites. ( Functions )

A Great Portal, Great links to great web sites. ( Asks if I want to download )

It's the same fpr my other sites.
Reply With Quote
  #4 (permalink)  
Old 10-08-2008, 09:07 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

Using IE6

A Great Portal, Great links to great web sites. ( Asks if I want to download it)

http://www.agreatportal.com/index.html ( Functions OK )
Reply With Quote
  #5 (permalink)  
Old 10-08-2008, 09:23 AM
WebProWorld Pro
 
Join Date: Dec 2007
Location: Brussels, Belgium
Posts: 164
Jean-Luc RepRank 2
Default Re: with index.html OK, wihout downlaad

The header sent by your web server contains :
Code:
Content-Type: application/x-httpd-php
It should be :
Code:
Content-Type: text/html; charset=UTF-8
or something similar.

No idea why your web server generates this "Content-Type" though.

Jean-Luc
__________________
Checking redirects made easy | | Professional AWStats Services
Reply With Quote
  #6 (permalink)  
Old 10-08-2008, 10:10 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

I've at last tried if in FireFox and IE7 and I get the same problem

I believe it's my .htacess, I want embeded php, which uses

AddType application/x-httpd-php .html .htm
Reply With Quote
  #7 (permalink)  
Old 10-08-2008, 10:14 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,648
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: with index.html OK, wihout downlaad

Interestingly enough, on Firefox both versions try to download. I think this is happening because the server configuration was set up incorrectly. I think the configuration was modified to parse .html files as .php, but the content type is not getting changed correctly when the PHP parser processes the document.

Try adding the following:

AddHandler x-httpd-php .html

The reason is that there are two different ways Apache can process PHP files, depending on the way PHP is installed on the server, and the way the Apache server was compiled. It has to do with how Apache sends the call to the PHP processor. All you need to know is when AddType fails, use AddHandler.

If this fails, on some servers you need to create a seperate line for each extension. So instead of the line you have above, you would use:
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
__________________
The best way to learn anything, is to question everything.

Last edited by wige; 10-08-2008 at 10:22 AM.
Reply With Quote
  #8 (permalink)  
Old 10-08-2008, 10:21 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

(I think this is something to do with it?)

.htaccess uses:-
AddType application/x-httpd-php .html .htm

.http.conf uses
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps

I'm shure the site where working OK, until yesterday when I re-formated my harddrive and reinstalled everything from scratch, (I had a nasty virus).

Still rebuilding and testing.
Reply With Quote
  #9 (permalink)  
Old 10-08-2008, 10:26 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,648
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: with index.html OK, wihout downlaad

The .htaccess directive will add additional extensions to those specified in httpd.conf, and so there should not be a conflict. However, if a handler is not specified, it may not work depending on your installation. Try adding the AddHandler directive I put above. If it still does not work, try adding the directives to the httpd.conf temporarily to test if the problem is with the directive itself, or if the server is ignoring the .htaccess file itself - you may have to re-enable that directive for .htaccess files.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #10 (permalink)  
Old 10-08-2008, 10:27 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

I've just tried removing AddType application/x-httpd-php .html .htm fro .htacess and the page/s function.

I'll have to see if embeded php still works without this though?
Reply With Quote
  #11 (permalink)  
Old 10-08-2008, 10:52 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

Humph!!!

Looks like embeded php fails on a site which has not had and code changed by me, so I guess there is another issue, as well?
Reply With Quote
  #12 (permalink)  
Old 10-08-2008, 11:06 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

I think I've fixed it, more testing needs to be done

.htaccess now uses
AddType application/x-httpd-php .php .htm .html
AddHandler application/x-httpd-php .html .php .htm
AddType application/x-httpd-php5 .php .htm .html
AddHandler application/x-httpd-php5 .html .php .htm

httpd.conf contains nothing to do with php


Thanks
Reply With Quote
  #13 (permalink)  
Old 10-09-2008, 01:11 AM
edhan's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Singapore
Posts: 716
edhan RepRank 3edhan RepRank 3edhan RepRank 3
Default Re: with index.html OK, wihout downlaad

Quote:
Originally Posted by TrafficProducer View Post
I tried it with my IE7. No problem for both.
Reply With Quote
  #14 (permalink)  
Old 10-09-2008, 07:36 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

Quote:
I tried it with my IE7. No problem for both.
Yes, thanks the .htaccess change appears to have fixed the problem now
Reply With Quote
  #15 (permalink)  
Old 10-10-2008, 05:51 AM
TrafficProducer's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: United Kingdom
Posts: 1,642
TrafficProducer RepRank 3TrafficProducer RepRank 3TrafficProducer RepRank 3
Default Re: with index.html OK, wihout downlaad

Just a quick update, incase anyone else has a simular issue. The final .htaccess is now, (this appears to work). Thanks everyone :-


AddType application/x-httpd-php .php .htm .html
# AddHandler application/x-httpd-php .html .php .htm
AddType application/x-httpd-php5 .php .htm .html
# Use PHP5 as default
AddHandler application/x-httpd-php .html .php .htm
Reply With Quote
  #16 (permalink)  
Old 12-03-2008, 01:34 AM
WebProWorld Pro
 
Join Date: Aug 2006
Location: Cary, Illinois
Posts: 265
getmea RepRank 1
Default Re: with index.html OK, wihout downlaad

Hi, all...resurrecting an old thread, hoping for some help.

I changed my HTACCESS according to the last post but nothing doing. Unknowingly, I created a new post for my issue.

Any suggestions?

Regards,
Getmea
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSN has both .com and index.html Zemfik MSN Search Discussion Forum 2 03-04-2008 09:36 PM
Index.html goes from a PR4 to a PR3 nipplecharms1 Google Discussion Forum 4 05-17-2007 08:09 AM
MSN has both .com and index.html Sabat MSN Search Discussion Forum 4 02-06-2007 09:36 AM
index.html vs index.asp howabout Search Engine Optimization Forum 8 11-15-2004 10:46 PM
Changing from index.html to index.shtml Bluesuit Search Engine Optimization Forum 5 09-02-2004 10:12 PM


All times are GMT -4. The time now is 07:22 PM.



Search Engine Optimization by vBSEO 3.3.0