Custom Domain Using Root and questions about script

I want to help to setup my shop with my brand new domain (root).

Moreover, i want to ask what custom script can do? i try to add something but nothing happen

Hi there,

To setup your storelink website on your root domain, we will make use of the “www” subdomain. Following are the steps to do this in Cloudflare.

Steps to Connect Your Root Domain to Store.link Using Cloudflare

Step-by-Step Guide

  1. Set Up the Custom Domain in Store.link

    • Go to Domain Settings in your Store.link dashboard.
    • Click Edit and enter your domain with “www” (e.g., www.thedemowebsite.xyz).
    • Save the changes by clicking Update.
  2. Add CNAME Records in Cloudflare

    • Log in to your Cloudflare account and select your domain.
    • Navigate to the DNS tab.
    • Add two CNAME records:
      • Record 1:
        • Type: CNAME
        • Name: www
        • Target: The domain you entered in Store.link (e.g., www.thedemowebsite.xyz).
        • Proxy Status: Turn off (DNS only).
        • TTL: Auto
      • Record 2:
        • Type: CNAME
        • Name: Root domain (e.g., thedemowebsite.xyz).
        • Target: www
        • Proxy Status: Turn off (DNS only).
        • TTL: Auto
  3. Create a Page Rule for Redirection

    • Go to the Rules section in Cloudflare and select Page Rules.
    • Click Create Page Rule and set up the following:
      • URL: https://thedemowebsite.xyz/*
      • Setting: Forwarding URL
      • Status Code: 301 Permanent Redirect
      • Destination URL: https://www.thedemowebsite.xyz/$1
    • Save and deploy the rule.
  4. Verify Setup

    • Ensure all DNS changes are saved.
    • Test the redirection by visiting your root domain (thedemowebsite.xyz) to confirm it redirects to the “www” version (www.thedemowebsite.xyz).

We are redirecting all traffic in your root domain to the “www” version of your website. And adding a page redirect rule. If you are using a different domain registrar, please try to follow the same steps there.

As for custom script, this allows you to add custom JS or custom CSS. You can even add code snippets of other widgets.

Here are some related articles:

I hope this information helps,
Aslam

1 Like