# Making a domain your main address

> Make a connected domain your WordPress site's main address with Make main. What changes, how www works, and how to switch back.

Source: https://docs.phluit.com/products/managed-wordpress/wordpress-main-address/

The main address is the address your site uses for its links and the one visitors end up on. All other addresses of the site, including the free address, redirect to it. A new site starts with its free address as the main address; once your own domain is connected, you can make it the main address.

## Before you start

Only a domain with the status **Connected** can become the main address, because it needs a working SSL certificate. If your domain still shows **Waiting for DNS** or **Setting up SSL**, wait until it's connected. See [Connecting your own domain](/products/managed-wordpress/wordpress-connect-your-domain/).

## Make a domain the main address

1.  In the portal (**portal.phluit.com**), go to **Services** and open your Managed WordPress plan.
2.  If your plan has more than one site, click the site in the list at the top of the panel.
3.  Open the **Domains** tab.
4.  Next to the domain, click **Make main**.
5.  Confirm the question _"Make example.com your main address? Links inside your site are updated to the new address."_

The panel shows _"Switching your main address. All links in your site are updated; this takes a minute."_ When it's done, the domain has the **Main** label and appears on the Overview tab under **Main address**.

## What happens when you switch

-   We make a backup of the site first. It appears on the **Backups** tab with the type **Before a change**.
-   Links stored in your site, such as links in pages, posts, menus and settings, are changed from the old address to the new one.
-   Visitors who use any other address of the site are redirected to the main address.
-   **Open WP Admin** and **Visit site** now use the main address.
-   The change is recorded on the **Activity** tab as **Primary domain changed**.

## www or no www?

Add both `example.com` and `www.example.com` to the site and make the one you prefer the main address. Visitors who type the other one are redirected, so both always work.

## Switching back or to another domain

You can change the main address at any time. Click **Make main** next to the free address or another connected domain. The main address itself can't be removed; to remove it, make another address the main one first. See [Removing a domain](/products/managed-wordpress/wordpress-remove-domain/).

## If something looks wrong afterwards

-   Click **Clear cache** on the Overview tab. If you use a caching plugin, clear its cache too.
-   Addresses written directly into theme or plugin files are not changed. Check custom code for the old address.
-   If the site doesn't look right, restore the **Before a change** backup made just before the switch. See [Restoring a backup (and undoing a restore)](/products/managed-wordpress/wordpress-restore-backup/).
