Standard Operating Procedure (SOP)
Customer Domain Onboarding Guide for Shop-E-Business
Now that your architecture is built and tested, onboarding a new customer becomes a repeatable checklist process. This SOP ensures both the root domain and www version work flawlessly.
Phase 1: Purchase and Application Setup
Step 1: Buy the Domain
Purchase the domain (example: newcustomer.com).
Buying the domain directly through Cloudflare makes DNS and SSL validation slightly faster, but you can purchase it anywhere such as Namecheap or GoDaddy.
Step 2: Assign the Domain in Your Database
Open your Shop-E-Business database or admin dashboard and assign the domain to the customer’s shop.
Only save the root domain: newcustomer.com
Do NOT include:
- www.
- https://
Phase 2: Cloudflare Custom Hostname Setup
Step 3: Add the Hostname to Your SaaS Platform
- Log into Cloudflare.
- Open your master domain: shopebusiness.com.
- Go to SSL/TLS → Custom Hostnames.
- Click Add Custom Hostname.
- Enter: newcustomer.com.
- Keep the default settings:
- Provided by Cloudflare
- TXT Validation
- Default Origin Server
- Click Add Custom Hostname.
Step 4: Copy the Validation Records
Expand the newly created hostname row and copy the TXT validation records generated by Cloudflare. Keep this page open for the next steps.
Phase 3: DNS Routing (Customer Domain)
Configure the DNS settings for the customer’s domain. If the domain was purchased through Cloudflare, use the Cloudflare DNS dashboard. Otherwise, use the DNS provider dashboard such as Namecheap.
Step 5: Route the Root Domain (CNAME)
| Field | Value |
|---|---|
| Type | CNAME |
| Name | @ |
| Target | www.shopebusiness.com |
| Proxy Status | Orange Cloud ON (Proxied) |
Step 6: Add SSL Validation (TXT Record)
| Field | Value |
|---|---|
| Type | TXT |
| Name | TXT Name from Cloudflare |
| Target | Verification String |
Phase 4: Setup WWW Redirect
Step 7: Create Dummy DNS Record for WWW
| Field | Value |
|---|---|
| Type | A |
| Name | www |
| IPv4 Address | 192.0.2.1 |
| Proxy Status | Orange Cloud ON (Proxied) |
Step 8: Create Page Rule for Redirect
- Open Cloudflare dashboard for newcustomer.com.
- Go to Page Rules.
- Click Create Page Rule.
- URL Match:
www.newcustomer.com/*
- Select:
- Forwarding URL
- 301 - Permanent Redirect
- Destination URL:
https://newcustomer.com/$1
- Click Save and Deploy.
Phase 5: Verification
Step 9: Check Status
Return to: shopebusiness.com → SSL/TLS → Custom Hostnames
Wait until both the Hostname and Certificate show a green Active status.
Step 10: Final Testing
- Open a fresh Incognito/Private browsing window.
- Test:
https://newcustomer.com
- Verify the customer shop loads correctly.
- Test:
www.newcustomer.com
- Verify it instantly redirects to the root domain.
Important Concern: HTTP vs HTTPS
If http://shasroibazar.com works without HTTPS, Google may penalize the site and browsers will display a “Not Secure” warning to users.
- Open Cloudflare dashboard for the domain.
- Navigate to: SSL/TLS → Edge Certificates
- Enable: Always Use HTTPS
Any visitor using http:// will automatically and invisibly be redirected to the secure https:// version.
You Are Ready to Scale 🚀
Keep this SOP checklist handy for onboarding every new tenant into your Shop-E-Business SaaS platform.