URL redirection can be really useful in the following cases:

  • You've changed your web hosting provider and don't want to lose your high ranking in the search results.

  • You've changed your website's domain name, and you don't want to lose your current client base.

  • You have several similar domain names and want to increase traffic (e.g., facebook.com and fb.com).

  • Your domain is spelled and pronounced differently (e.g., cookie.com and kuki.com).

You can easily redirect one URL to another with the help of Cloudflare ☁️

All you need to do is:

  1. Create a free Cloudflare account

  2. Add your website (domain) to Cloudflare

  3. Point your domain name to Cloudflare

  4. Add required DNS records

  5. Configure the HTTPS settings

  6. Set up a redirect

1. Create a free Cloudflare account

Signing up is easy and takes only a few minutes.

Cloudflare signup page

Once you have your Cloudflare account, you can proceed with adding your website (domain name) there.

2. Add your website (domain) to Cloudflare

1. In your Cloudflare dashboard, click Add Site.

2. Insert your website address there, e.g., the domain name that you'd like to redirect to another domain.

3. Now, select your plan – we recommend choosing the Free version – and click Continue. The free plan comes with all the needed basic features to protect your website from online threats and enhance its loading speed.

4. In the Review your DNS step, click Continue. Now, you will need to point your domain to Cloudflare by updating your domain's name servers. Don't worry, it's simple!

3. Point your domain name to Cloudflare

In the step Change your nameservers, you will see detailed instructions – follow them. In short, you will need to log into your domain provider's website, find your domain's nameserver settings and replace them with the custom Cloudflare nameservers:

1. Log in to your domain provider's website. If you got this domain from Zyro, log into your Zyro account.

2. Find your domain's nameserver settings; you'll need to specify custom nameservers. If your domain's at Zyro, follow these steps.

3. Remove the current nameservers and insert the nameservers given by Cloudflare.

4. Go back to the Cloudflare page and press Done, check nameservers. If you're then presented with the Quick Start Guide, you may click Finish later.

Note: It may take up to 24 hours for DNS to propagate worldwide. Once the nameservers update is complete, you will receive an email confirmation from Cloudflare.

4. Add required DNS records

To execute a redirect from a domain-A to a domain-B, the source domain (domain-A) needs to be pointed to any IP address. You can point to a dummy IP address: 192.0.2.1 - you can learn more about it here.

At Cloudflare, go to the DNS section and make sure that there are similar records for your domain:

If there are no such DNS records there, click Add record and add them as in the image above.

5. Configure the HTTPS settings

Hypertext Transfer Protocol Secure (HTTPS) secures website data through an SSL certificate.

In Cloudflare, go to the SSL/TLS → Overview, and make sure that the Full encryption mode is enabled.

6. Set up a redirect

Once your domain fully connects to Cloudflare (it may take up to 24 hours), you can finally create a domain redirection.

To configure it, follow these steps:

1. Go to Rules Page Rules and click Create Page Rule.

2. Enter the URL that you want to redirect to another URL.

3. Choose the setting Forwarding URL, and its type: 301 (Permanent Redirect) or 302 (Temporary Redirect).

4. Insert the destination URL, the one you want to redirect to.

5. To finish, click Save and deploy. Repeat the same with all URLs you want to redirect.

And that's it! The page rule goes live immediately 🎉

Did this answer your question?