Skip to main content

Command Palette

Search for a command to run...

πŸ”„ Custom Subdomain Forwarding with Cloudflare

A simple guide to forward custom subdomains to free Bento and Linktree pages using Cloudflare.

Updated
β€’2 min read
πŸ”„ Custom Subdomain Forwarding with Cloudflare
N

I am a student studying in Mumbai University, learning DevOps, looking for opportunities to learn more things by gaining experience at prestigious institutions

🎯 What We're Building

πŸ”„ How It Works

Note: This setup uses Cloudflare as a workaround since free Bento and Linktree plans don't support custom domains.

πŸ“ Step-by-Step Guide

1️⃣ Create DNS Records

  1. Log in to your Cloudflare Dashboard

  2. Select your domain: nikhilmishra.live

  3. Go to DNS β†’ Records

  4. Add the following records:

For Bento Profile

Type:   CNAME
Name:   iam
Target: @
Proxy:  βœ… Enabled (Orange Cloud)

For Linktree Profile

Type:   CNAME
Name:   links
Target: @
Proxy:  βœ… Enabled (Orange Cloud)

2️⃣ Set Up Page Rules

  1. Navigate to Rules β†’ Page Rules

  2. Create two page rules:

Bento Redirect

URL Pattern: https://iam.nikhilmishra.live/*
Forward to: https://bento.me/kaalpanikh
Status:     301 (Permanent Redirect)

Linktree Redirect

URL Pattern: https://links.nikhilmishra.live/*
Forward to: https://linktr.ee/kaalpanikh
Status:     301 (Permanent Redirect)

3️⃣ Verify Setup

After DNS propagation (usually 5-10 minutes):

  1. Visit iam.nikhilmishra.live

    • Should redirect to your Bento profile.
  2. Visit links.nikhilmishra.live

    • Should redirect to your Linktree profile.

⚠️ Troubleshooting

If redirects aren't working:

  1. Check if Cloudflare proxy is enabled (orange cloud).

  2. Verify page rules are in the correct order.

  3. Clear your browser cache.

  4. Wait a few more minutes for DNS propagation.