Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Firefox can't see my 'index.html' (http://www.greenguysboard.com/board/showthread.php?t=48203)

japamor 2008-07-30 03:08 AM

Firefox can't see my 'index.html'
 
I need help please. |huh|huh|angry||angry||banghead|

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?

justbondage 2008-07-30 06:09 AM

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)?

pc 2008-07-30 06:21 AM

Hi japamor , what version of FF do you have ?
FF 3 it's still in beta , there are still some bugs to fix.

justbondage 2008-07-30 06:30 AM

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.

Simon 2008-07-30 06:34 AM

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?

pc 2008-07-30 06:44 AM

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.

japamor 2008-07-30 12:20 PM

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

Useless 2008-07-30 12:32 PM

Quote:

Originally Posted by japamor (Post 412271)
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 tags and sections popping up at least two more times lower in your page. It's insane. |shocking|

virgohippy 2008-07-30 12:34 PM

Quote:

Originally Posted by japamor (Post 412271)
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. |angry|

DangerDave 2008-07-30 06:29 PM

One choice is to change the AddType line to and AddHandler line, that usually fixes the problem..

DD

Scroto 2008-07-31 12:58 AM

Quote:

Originally Posted by Useless Warrior (Post 412272)

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 tags and 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 |crazy|

japamor 2008-07-31 03:56 AM

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


All times are GMT -4. The time now is 02:56 PM.

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