Web Admin/HTML Question

Status
Not open for further replies.
I've inherited administration for a website belonging to a social club I belong to. (barfclub.org for reference).

It is a very bare bones site, I know. Long term I may cut my teeth on upgrading, but for now I have a simple issue.

In Chrome, when I click links in the sidebar to load sub-pages, some load (calendar) and some don't (sponsors). Chrome attempts to download the html file instead.

IE7 seems to render all the sub-pages just fine.

Any ideas?
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
Pysgard":3utdvcth said:
Pysgard":3utdvcth said:
topham":3utdvcth said:
They are being served as the wrong content type, leaving it up to the browser what it does with it.
So would that be an apache config issue?
Okay, I seem to be serving html as type "application/x-httpd-php"

If I use php includes, isn't that necessary?
No. The browser doesn't care what your web server is doing to generate HTML, only that it is. (Or whatever else the host's Content-Type header tells the browser it's serving..i.e., generated JPEGs, etc.)
 
Blacken00100":3jwagpxx said:
Pysgard":3jwagpxx said:
Pysgard":3jwagpxx said:
topham":3jwagpxx said:
They are being served as the wrong content type, leaving it up to the browser what it does with it.
So would that be an apache config issue?
Okay, I seem to be serving html as type "application/x-httpd-php"

If I use php includes, isn't that necessary?
No. The browser doesn't care what your web server is doing to generate HTML, only that it is. (Or whatever else the host's Content-Type header tells the browser it's serving..i.e., generated JPEGs, etc.)

I see. So where does the content type get set? As far as I can see, the headers are identical on pages that work along with pages that don't.
 
Status
Not open for further replies.