# Landing-Page Custom Domains

> Serve published Lexsis pages from a branded subdomain

Canonical URL: https://0.0.0.0:3005/tracking/custom-domains

Connect a branded subdomain such as `shop.yourbrand.com` to your published
Lexsis pages.

[Open custom-domain settings in the Lexsis app](https://app.trylexsis.com/storefront/settings/domains).

## Setup

1. Open [Settings → Domains](https://app.trylexsis.com/storefront/settings/domains).
2. Register the full subdomain you want to use.
3. Optionally choose the default page served from the domain root.
4. Add the CNAME record shown by the app at your DNS provider.
5. Return to Lexsis and verify the domain.
6. Wait for the status to become active before using the URL in campaigns.

When the domain is active, published pages are available at:

```text
https://shop.yourbrand.com/<page-slug>
```

If you selected a default page, it is also served from the domain root.

## Redirects and not-found pages

This is a beta feature that is turned on per workspace. When it's on, each
domain in **Settings → Domains** gets a routing card.

- **When a page isn't found**: show the standard not-found page, redirect to
  the same path on your Shopify store (`/cart` goes to `yourstore.com/cart`),
  or show one of your published pages. Your own page is served with a 404
  status so search engines don't index it. Product and collection URLs with no
  template route follow the same setting.
- **Redirects**: rules run before pages, top to bottom, and the first match
  wins, so a rule can replace a live page.

  | From | To | Result |
  |---|---|---|
  | `/old-sale` | `/diwali` | Exact path; case and trailing slash are ignored |
  | `/lp/*` | `/campaigns/*` | `/lp/summer` goes to `/campaigns/summer` |
  | `/cart` | `shopify:` | Same path on your Shopify store |
  | `/faq` | `shopify:/pages/faq` | A specific Shopify path |
  | `/x` | `https://example.com/y` | Any https URL |

  Choose 301 (permanent) or 302 (temporary). The visitor's query string is
  kept unless the target has its own. Up to 500 rules per domain.
- **Send /a/lp/… links to this domain**: Lexsis pages opened on your main
  Shopify domain (`yourstore.com/a/lp/<page>`) redirect (301) to the same page
  on this domain.

`/a/lp/…` paths opened on the custom domain itself always redirect to the bare
path (`/a/lp/collections/x` goes to `/collections/x`).

## DNS guidance

- Use a subdomain rather than the root domain.
- Copy the CNAME target from the app instead of typing it from memory.
- A domain can belong to only one Lexsis workspace.
- When using Cloudflare DNS, follow the proxy mode shown by the app during
  verification.
- DNS propagation and certificate issuance can take time.

## Troubleshooting

| Issue | Check |
|---|---|
| Verification fails | Confirm the record name and CNAME target exactly match the values shown in Lexsis |
| The record cannot be found | Confirm you edited the correct DNS zone and wait for propagation |
| The domain works but a page does not | Confirm the page is published and its slug is correct |
| The root shows no page | Select a default page in domain settings |

Custom tracking domains are not part of this feature.
