Greenguy's Board WebcamWiz CRAZY $5,000 Reward Bonuses


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-07-30, 03:08 AM   #1
japamor
I Love Turkish Delight, they're very moreish.
 
Join Date: Nov 2004
Location: UK
Posts: 578
Firefox can't see my 'index.html'

I need help please.

When I open 'domain.com/index.shtml' in my browser, the appropriate file opens correctly, but when I try to open 'domain.com/index.html', Firefox treats it as a download and opens a local folder named file:///C:/DOCUME~1/Chris/LOCALS~1/Temp/index-2.html - it doesn't seem to see the index.html as a web page at all.
Anyone got any ideas?
__________________
japamor is offline   Reply With Quote
Old 2008-07-30, 06:09 AM   #2
justbondage
I want to set the record straight - I thought the cop was a prostitute
 
justbondage's Avatar
 
Join Date: Jun 2008
Posts: 293
Do you have anything insane in your .htaccess file?

Do you have anything else like index.php uploaded.

What happens when you go to domain.com/ (without specifying index.html)?
__________________
TOF - Post your galleries
JB - Post bondage stuff

ICQ - 424617189
justbondage is offline   Reply With Quote
Old 2008-07-30, 06:21 AM   #3
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
Hi japamor , what version of FF do you have ?
FF 3 it's still in beta , there are still some bugs to fix.
pc is offline   Reply With Quote
Old 2008-07-30, 06:30 AM   #4
justbondage
I want to set the record straight - I thought the cop was a prostitute
 
justbondage's Avatar
 
Join Date: Jun 2008
Posts: 293
pclit - FF3 isn't in beta, and if the bug was trying to download .html files instead of parsing them, well that is one hell of a bug.
__________________
TOF - Post your galleries
JB - Post bondage stuff

ICQ - 424617189
justbondage is offline   Reply With Quote
Old 2008-07-30, 06:34 AM   #5
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Does it happen on all sites you visit or only your own?
If only your own, does it happen on all of your sites?

Do the sites where this is happening display the index.html page in other browsers you have?
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2008-07-30, 06:44 AM   #6
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
Few random sites didn't work for me too, but don't remember which ones.justbondage you right but even if Mozilla states it's not beta enymore , FF 3 is still new and needs some fix.If his site work in other browsers right , that means there is something wrong with his FF version.( assuming you using new FF 3 ).
Japamor give us full address so we can see what's going on on our computers.
pc is offline   Reply With Quote
Old 2008-07-30, 12:20 PM   #7
japamor
I Love Turkish Delight, they're very moreish.
 
Join Date: Nov 2004
Location: UK
Posts: 578
I think its fixed now.
It was only happening on 2 of my domains and in both the .htaccess file had one line:
AddType application/x-httpd-php .html

I don't know what this line is supposed to do but when I took it out everything worked fine.

Thanks for the help everyone.
__________________
japamor is offline   Reply With Quote
Old 2008-07-30, 12:32 PM   #8
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Quote:
Originally Posted by japamor View Post
I think its fixed now.
It was only happening on 2 of my domains and in both the .htaccess file had one line:
AddType application/x-httpd-php .html

I don't know what this line is supposed to do but when I took it out everything worked fine.
That allowed you to execute PHP within HTML pages. You better make sure that you didn't have any includes on your HTML pages.

EDIT: I just viewed the source of the index of the link list in your sig. It's a mess. I mean really, really bad. Be happy that any browser can view that page. You have <HTML> tags and <HEAD> sections popping up at least two more times lower in your page. It's insane. |shocking|
__________________
Click here to purchase a bridge I'm selling.

Last edited by Useless; 2008-07-30 at 12:39 PM..
Useless is offline   Reply With Quote
Old 2008-07-30, 12:34 PM   #9
virgohippy
Madness is like gravity. All it takes is a little... push.
 
virgohippy's Avatar
 
Join Date: Feb 2006
Location: California
Posts: 1,679
Quote:
Originally Posted by japamor View Post
AddType application/x-httpd-php .html
This turns all .html pages into PHP parsed pages. Definitely remove this if you don't need it.

With PHP (or any dynamic content) if there is no header stating the content type then FF won't know how to treat html.

I'm going with a FF3 bug on this one.

Edit: Damn UW beat me by two minutes.
__________________
~Warm and Fuzzy.

Last edited by virgohippy; 2008-07-30 at 12:37 PM..
virgohippy is offline   Reply With Quote
Old 2008-07-30, 06:29 PM   #10
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
One choice is to change the AddType line to and AddHandler line, that usually fixes the problem..

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2008-07-31, 12:58 AM   #11
Scroto
Aw, Dad, you've done a lot of great things, but you're a very old man, and old people are useless
 
Scroto's Avatar
 
Join Date: Aug 2007
Posts: 29
Send a message via ICQ to Scroto
Quote:
Originally Posted by Useless Warrior View Post

EDIT: I just viewed the source of the index of the link list in your sig. It's a mess. I mean really, really bad. Be happy that any browser can view that page. You have <HTML> tags and <HEAD> sections popping up at least two more times lower in your page. It's insane. |shocking|
I just noticed that as well, very poor coding
__________________
VoyeurZine VoyeurPost TGP/MPG trades --> ICQ 297-561-732
Scroto is offline   Reply With Quote
Old 2008-07-31, 03:56 AM   #12
japamor
I Love Turkish Delight, they're very moreish.
 
Join Date: Nov 2004
Location: UK
Posts: 578
Thanks for the help guys.

I think I've got rid of all the extraneous head and body tags now.

In my ignorance I thought that SSI's had to be complete files, including head, body tags etc. The extra tags didn't show up in my own code but did in View-Source.

Cheers
__________________
japamor is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -4. The time now is 10:31 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc