Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

computergek80

macrumors newbie
Original poster
Hello,

I was just in the process of checking wether my favorite sites were all sending their XHTML pages as application/xhtml+xml, when I found that one of my favoritest was sending theirs as text/html. Was wondering if maybe these links could help:
http://www.ibm.com/developerworks/xml/library/x-tipapachexhtml/index.html and http://www.workingwith.me.uk/articles/scripting/mimetypes
I have used the php script successfully, and I assume the Apache thing should do the trick.
I love the php script because it actually rewrites the page to be HTML when the user agent doesn't have application/xhtml+xml in it's request header.

Hope any of this is helpful,

Pieter van der Weel
 
Well, the site is built on vBulletin so it's not Mac Rumors code. Also, the site doesn't pass validation so and is using XHTML Transitional so something like changing the mime type is a low priority.
 
Okay, right. Shutting up now.
Edit: I just checked, and you can solve at least a couple of the errors by putting the first meta element inside the head element.
Edit 2: Another way to reduce errors is to do a search for ' />' and replace with '>' and change the doctype to HTML 4.01. (cuts down to 61 errors)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.