Skip to content

Switching from a Root Domain to a www Domain

If you initially set up your root domain ( with, but now would like to switch to using a subdomain ( instead, it is possible to do so.

Remove Root Domain from

If (without the www) is already added to, you will need to remove it first. If not, you can skip this step.

Disable CDN, if you haven't already. From your dashboard choose from the domain list, and navigate to CDN > CDN Config > CDN. Click the Disable CDN link.

Navigate to Settings, scroll all the way down to the bottom and click the Delete domain link. When the dialog box pops up, confirm that you wish to delete the domain.

Change the Domain in WordPress Admin

From your WordPress dashboard, navigate to Settings > General, and set both WordPress Address (URL) and Site Address (URL) to Click the Save Changes button.

Be sure to Purge All in LiteSpeed Cache, now or when you've finished all of the optional steps below.

You may wish to redirect all incoming requests to If so, you can add this to the top of your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]

If you want to avoid excessive redirects from internal links, you can search and replace all instances of in your site content with There are plugins available (such as this one) to help you with this task, but please use extreme caution. Unless you know exactly what you are doing, it's possible to render your site completely unusable with this kind of plugin. Ask an admin or developer to help you, or at the very least, back up your site before you proceed.

Add www Domain to

From the WordPress dashboard, navigate to LiteSpeed Cache > General and request a new domain key by pressing Refresh Domain Key.


If this is your first time generating a domain key, the button will say Request Domain Key.

Wait a few minutes for the domain key to be generated, refresh the page, and press the Link to button.

Next Steps

Your URL is now officially on your WordPress blog, and is connected to your account. Now it is time to onboard this new URL. You'll need to do the following:

  1. Configure DNS using whichever method you used before
  2. Re-enable the CDN
  3. Verify the CDN is working

Last update: February 3, 2024