Today, I am going to show you how I created a custom URL for our GIDBlog Youtube channel using our own gidblog.com domain name.
As you may already know, Google/Youtube has put in place very precise requirements for you to even have a Custom URL for your Youtube channel. To be eligible, you need to fulfill the following 4 requirements:
- Have 100 or more subscribers
- Be at least 30 days old (the channel, not you 😂)
- Have an uploaded photo as a channel icon
- Have uploaded channel art
Since we have just created GIDBlog’s Youtube channel less than 2 months ago, we certainly do not have the
100 or more subscribers requirement today, at least not yet. So, no Custom URL for us yet!
However, since gidblog.com is already a nice, short domain name, and I control it completely, I realised that I can use it to create a short URL to our GIDBlog Youtube channel while we wait for the Youtube Custom URL option to become available (for our channel).
The Short URL to GIDBlog’s Youtube channel
We decided on
gidblog.com/yt. That will be the short and easy-to-remember URL to our GIDBlog Youtube channel.
Create a short URL with Apache Module mod_alias
Using the Redirect directive
gidblog.com is running on an Apache web server and I will use the very simple
Redirect directive (made available by the Apache Module mod_alias) to handle the short URL redirect from
gidblog.com/yt to our GIDBlog Youtube channel’s real URL, which is
I edit my Apache virtualhost configuration file for the gidblog.com domain and insert the following line (see line 5):
<VirtualHost *:80> ServerName gidblog.com ServerAlias www.gidblog.com # Handle redirects first, if any. Redirect "/yt" "https://www.youtube.com/channel/UCA4iwhJnx4KO8V0PHlVPsLg" ... </VirtualHost>
Save and close the file, and reload the running Apache web server.
Now, when anyone types
gidblog.com/yt in their browser window and hits ENTER, they end up in our GIDBlog Youtube channel!