SSL settings to prevent redirect loop

Media Temple Knowledge Base article: http://wiki.mediatemple.net/w/SSL_Certificates_cause_endless_loops_on_WordPress_sites Replace contents of index.php in root with: