Redirect www. requests to TLD (PHP)

The below php statement redirects any www.example.com requests to example.com.

// Redirect www. to tld
if(strstr($_SERVER['HTTP_HOST'],'www.'))
{
	header('HTTP/1.1 301 Moved Permanently');
	header('Location: http://'.substr($_SERVER['HTTP_HOST'],4).$_SERVER['REQUEST_URI']);
	exit();
}

Solution for ‘HTTP “Content-Type” of “text/plain” is not supported…’

Trying to get HTML5 video working but you get this issue in the console? Using Apache?

HTTP "Content-Type" of "text/plain" is not supported...

Add these lines to your servers .htaccess file:
(Note: it may help to clear any local DNS caches)

AddType video/webm .webm
AddType video/ogg .ogv
AddType video/mp4 .mp4

Source: http://help.videojs.com/discussions/problems/2041-video-not-playing-on-firefox