How to Embed and Display YouTube Videos on a Secure SSL Page

EDIT: 5/11/2018: The problem of embedding youtube videos in an SSL page is no longer a problem like it was in 2010 when I originally wrote this post. Youtube is now ssl enabled. And with Flash Player embedding an ancient memory, it is best to just embed using the YouTube iframe method.

I’ve found that this variation of code works the best to size and display the embedded iframe video:

.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } 
.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
<div class='embed-container'>
<iframe src='' frameborder='0' allowfullscreen>


EDIT 08/03/2010: A reader just pointed out that the method outlined in this post will present a warning in in the status bar when using the latest version of FireFox. No popups or dialog messages though – that’s good. And it still works flawlessly in IE and Chrome. Thanks to Jayapal for pointing the warning in FF.

Original Post:
Here is a cool trick to get rid of ssl security warning errors when embedding youtube videos into secure web pages.

This solution will work if your server is using Apache and has Mod_Rewrite enabled (most Linux web hosting companies do).

First, add this to your .htaccess file: Continue reading How to Embed and Display YouTube Videos on a Secure SSL Page

Is your WordPress .htaccess file causing problems with other files?

That’s the issue I ran into. I was building a WordPress site, and put a billing/invoicing app in a subdirectory of the site.

Well, the default rewrite lines (that WordPress added to the site’s htaccess file) were causing major issues for the billing script (AWBS). It was also causing problems with Apache password protecting of a directory. The WordPress rewrite would take over before Apache would invoke the username/password entry box.

It was a big mess. I spent a long time pulling my hair out over the situation.
Continue reading Is your WordPress .htaccess file causing problems with other files?

Setup an IDN in WHM/CPanel

I recently ran across a question where the user wanted to setup an IDN (Internationalized Domain Name) in WHM/Cpanel. For those wondering, an IDN is a domain name that uses non-ASCII characters, such as ñ, ü, ý, etc. I learned that the process to setup such a domain in WHM/Cpanel is quite simple.

To setup the domain in WHM, you first need to convert the IDN domain name to Punycode. For example the non-ASCII domain name “” converts to the punycode version, “”. Once you have the punycode version of the domain, you’re set to go. Just make sure account username does not use punycode or any non-ACII characters. Just use plain ASCII characters for usernames. Continue reading Setup an IDN in WHM/CPanel