How to Redirect a Root Domain or Subdomain with SSL for Free Using Google Firebase

Introduction:

If you'd like to redirect your domain somewhere else using SSL (https), follow these steps to do so. In this example, I will be redirecting "example.AppleCommunity.net" to "RyderCragie.com".

Setting Up The Redirect in Google Firebase:

First, go to console.firebase.google.com and choose "Create a project". Give your project a name, accept the Firebase terms and click "Continue". On the next screen, disable the Google Analytics switch and choose "Create Project".

On the left, click on "Build" and then "Hosting". On the right, click "Get started". Click "Next" twice and then "Continue to the console". Once you're on the hosting screen, click the blue "Add custom domain" button on the right. Here you will be asked to enter the domain you wish to redirect. In this example, I will enter "example.AppleCommunity.net".

Below this, you'll see a box which says "Redirect example.AppleCommunity.net to an existing website". You must tick this so that you can redirect the domain/subdomain. Once ticked, another box will appear. In the 2nd box you need to enter the new domain that you want to redirect the old domain to. In this case, I will enter "RyderCragie.com". Once complete, click "Continue".

Verifying and Connecting Your Domain:

You will then be given a TXT record which you need to add to your old domain so that you can redirect it to the new domain. The "Host" and "Value" of the TXT record is given to you, so all you need to do is add it to your domain. If you are unsure how to manage the DNS settings of your domain, click here to learn more. Once added, click "Verify" in Firebase.

On the next screen, you will be asked to add another record to your domain. This time it is an A record. Once you have added this 2nd record to your domain, click "Finish" in Firebase.

Conclusion:

After approximately half an hour, your redirect will start working with SSL (https).

If you found this article and video helpful, please consider subscribing to my YouTube channel for more content. Thanks!