---
title: "Fix www not working on a domain with SSL forwarding or masking"
description: "If the www version of your forwarded domain shows a blank page or will not connect, point www to your root domain with a CNAME record and switch domain masking off and on. Works the same in Mailforge and Infraforge."
url: https://help.salesforge.ai/en/articles/10333701-fix-www-not-working-on-a-domain-with-ssl-forwarding-or-masking
collection: "Infrastructure"
updated: 2026-12-02
language: en
---

# Fix www not working on a domain with SSL forwarding or masking

If the www version of your forwarded domain shows a blank page or will not connect, point www to your root domain with a CNAME record and switch domain masking off and on. Works the same in Mailforge and Infraforge.

You forward a domain to your website with SSL redirect or domain masking. The bare domain works, for example `yourdomain.com`, but the `www` version shows a blank page or does not connect. This guide shows how to fix it. The steps are the same in Mailforge and Infraforge, with one difference in the Host Name field (see Step 2). The screenshots are from Mailforge.

## Why www stops working

The SSL forward and domain masking are set up on your root domain. The `www` host only follows the same forwarding when it points to the root domain. If `www` is missing, or is an A record that points to an IP address, it is not served by the forward, so visitors see a blank page or a connection error.

## How to fix it

### Step 1: Open the domain

Go to the **Domains** page and open the DNS settings of the domain. The **Domain edit** window opens. It shows the **Hosted SSL redirect** section with the **Domain masking** switch, and the **Edit Host Records** list below it.

![Domain edit window with the Hosted SSL redirect section, the Domain masking switch on, and the host records list without a www record](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/nntkl7RWSSWIwQvEaE1Gryee7aioIXkyMK2P8HjtOgwM7W7Ipja1N8qsA75f5ZZpWSD8Gm5GPP7.png)

### Step 2: Add a CNAME record for www

If `www` already has an A record that points to an IP address, remove it first, so that `www` has only the CNAME record. Then click **Add new record** and fill in the row:

-   **Host Name:** in Mailforge, enter `www`. In Infraforge, enter the full address, for example `www.yourdomain.com`.
    
-   **Record Type:** CNAME
    
-   **Address:** your root domain, for example `yourdomain.com`
    

![New record row with host name www, record type CNAME and the root domain as the address, above the Update button](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/NU1LpfaaM7TID4tdtr2ksOGdWfpVcVKwsCynh2CTtX1qQWp1d2LmvNt7Z9T99PUhQaaor7Tc5cP.png)

Click **Update**. You see the message "DNS record updated" and the `www` CNAME record appears in the list.

![Host records list with the new www CNAME record pointing to the root domain and a DNS record updated message](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/y75Gr5MLX6XXgc09dH7QeimsYeIHRF2FpqFhhSPHNz6774PCpbxLI2saOT9pOmEzBzuRijpBKqW.png)

### Step 3: Switch domain masking off and on again

The change only reaches the forward after you switch the **Domain masking** switch off and on again:

-   If domain masking is on, switch it off, then switch it on again.
    
-   If domain masking is off, switch it on, then switch it off again.
    

Switched off:

![Domain masking switch turned off](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/1nfusH3c87rkR7vkTEN9hCaAeyMIdcrbD9q8kyNtJt1mS2QwkDPsG4KVgbakDQOHPzcFje747vX.png)

Switched on again:

![Domain masking switch turned back on](https://staticfiles.gleap.io/p677a7ec3b682e732d0e54ed0/M46QLQsnhQfV9WBrhCmlUHRaWrRLDINlzEKcDxaAl7ZX3YQogH2pCO3ZVUyjiCxJ6hZsZfMQD5o.png)

## Check that it works

Wait a few minutes, then open `https://www.yourdomain.com` in a browser. With the CNAME record in place and masking switched off and on, the `www` version works over HTTPS the same way as the root domain. DNS changes can take longer to reach everyone, up to 48 hours in some cases.

## Keep in mind

-   Keep `www` as a CNAME record that points to your root domain. If you remove it or replace it with an A record that points to an IP address, `www` stops working again.
    
-   Repeat the steps for every forwarded domain whose `www` does not work.
    

Still stuck? Contact our support team through the live chat and we will help.
