Send every address to one site
By Chris Hornak · Steps last checked · Part of the Swift Site Audit support pages
The short answer
Your site can be reached at four addresses: with or without www, and with http or https. Google doesn't prefer www or non-www. Pick one, always with https, and make the other three send visitors straight to it with one permanent (301 or 308) redirect. Most website builders do this for you once you choose a primary domain. Then use that one address in your links, sitemap and canonical tag.
These four addresses can all show your home page:
| Address | What to do |
|---|---|
| --- | --- |
https://www.example.com | Pick one of these two as your main address |
https://example.com | |
http://www.example.com | Send to the main address |
http://example.com | Send to the main address |
www or not? Google doesn't say one ranks better. Vercel and Netlify recommend www, because some domain settings work only on a subdomain. Shorter without www is fine too. Pick one and keep it.
Permanent redirects. A 301 or 308 redirect tells browsers and Google the move is permanent. Google treats 308 like 301. A temporary 302 or 307 redirect doesn't tell Google which address is the main one.
Use one hop. http://example.com → https://example.com → https://www.example.com makes visitors wait twice. Google follows up to 10 hops, but says to send visitors straight to the final address.
What the audit found
The audit reads the page you tested. Find the line your report shows, then jump to its fix.
Your address redirects to a different site or page
Your report says: URL redirects · Redirects to a different URL (a.com → b.com)
The address the audit was given ended on a different domain, or on a different page. This is often on purpose: a new brand name, or a parent company's site. If so, it's fine. But every visitor who uses the old address waits for one extra hop. Sending example.com to www.example.com doesn't count here: the audit treats that as your main address and passes it.
https://example.com
→ 301 https://example-staffing.com/home
(one extra wait on every visit)https://example-staffing.com
(no redirect)Fix: if the redirect is on purpose, make sure your own links, sitemap, canonical tag and social profiles use the final address, so nobody needs the hop. If it isn't on purpose, find where the redirect is set (your platform's redirect list, or your host) and remove it.
Your page redirects with a meta refresh or JavaScript
Your report says: Meta refresh redirect · Page uses meta refresh to redirect
The page loads first, then a tag or a script sends the visitor somewhere else. MDN says a meta refresh runs only after the page has fully loaded. Google says to use a permanent redirect from the server whenever possible, a meta refresh only if you can't, and JavaScript only if you can do neither. When the home page itself is a JavaScript redirect, the audit only sees the short redirect page, not your site.
<meta http-equiv="refresh" content="0; url=https://example.com/home">HTTP/1.1 301 Moved Permanently
Location: https://example.com/homeFix: replace the tag or script with a 301 redirect set on the server or in your platform, then delete the old redirect page.
Your site doesn't use https
Your report says: HTTPS · Not using HTTPS
Your site loads over http://, with no security certificate. Chrome shows Not secure next to the address. Google prefers https pages over http ones when it picks which address to show. Every builder on this page gives you a free certificate.
Not secure http://example.comhttps://example.comFix: turn on the free certificate, then send every http:// address to https://.
Make the change on your platform
Plain code shows first. Pick your platform and we remember it on every support page.
Plain code
Send every wrong version straight to the final address in one rule, with the full https:// address.
Apache (.htaccess)
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
R=301 makes it permanent. Behind a CDN or proxy, %{HTTPS} can read as off on every request and cause a loop. Ask your host.
Nginx
server {
listen 80;
server_name example.com www.example.com;
return 301 https://www.example.com$request_uri;
}
Add a second block for https://example.com that does the same.
Next.js on Vercel
In Project Settings › Domains, click Edit on the version you don't want and choose your main address in Redirect to. For a redirect in code, add it to next.config: permanent: true sends a 308.
Netlify
Your primary domain is the one you entered. Netlify sends the www or non-www twin to it for you. Page redirects go in a _redirects file, 301 by default.
Source: Apache: Redirecting and remapping with mod_rewrite · nginx: Converting rewrite rules · Vercel: Deploying and redirecting domains · Next.js: redirects · Netlify: Manage multiple domains
WordPress
Pick your main address
- Go to Settings › General.
- Set WordPress Address (URL) and Site Address (URL) to your main address, with
https://and with or withoutwww. Both are usually the same. Save.
WordPress then sends the www or non-www twin to it with a 301. Greyed out? The address is set in wp-config.php; change it there. A wrong address can lock you out, so have your host login ready first.
Turn on https
WordPress doesn't force https by itself. Ask your host for the free certificate and to force https, or add the rule from the Code tab to .htaccess.
Redirect an old page
WordPress has no redirect screen. Use your host's redirect tool, .htaccess, or a plugin. Yoast SEO Premium has Yoast SEO › Redirects. Rank Math has a Redirections module: Rank Math SEO › Redirections › Add New, type 301 Permanent Move. Neither plugin can redirect a whole domain.
Source: WordPress: General Settings · WordPress: HTTPS · WordPress code: redirect_canonical() · Yoast: My redirects do not work · Rank Math: How to create a redirection
Squarespace
Good to know: Squarespace sends your other domains to the primary one with a 301. SSL is on for you.
Pick your main address
- Open the Domains panel.
- Click … next to the domain and choose Set as primary domain. (A domain from another company: click it, then under Actions choose Set as primary domain.)
https
Open the SSL panel and set Security preference to Secure (preferred). Visitors then always go to https once the certificate is issued, which can take up to 48 hours.
Redirect an old page
In URL mappings, add a line like /old-url -> /new-url 301 and click Save. It works only once the old page is deleted or disabled.
Source: Squarespace: Setting a primary domain · Squarespace: Check your domain's SSL certificate status and settings · Squarespace: URL mappings
Shopify
Good to know: every domain listed on your Domains page sends visitors to your primary domain. An Alias domain doesn't. Certificates are free, and http visitors go to https automatically.
Pick your main address
- Go to Settings › Domains and click the domain.
- In the Type row, click Change, choose Primary domain and click Change domain type.
Make sure both example.com and www.example.com are listed and connected.
Redirect an old page
- Go to Content › Menus › URL redirects and click Create URL redirect.
- Fill in Redirect from and Redirect to, then Save redirect. It works only on an address that no longer loads a page.
Source: Shopify Help: Change your primary domain · Shopify Help: Secure connections · Shopify Help: URL redirects
Webflow
Good to know: SSL is on with no setup. With a default domain set, Webflow sends your other connected domains to it.
Pick your main address
- Go to Site settings › Publishing › Production.
- Click Make default next to your main address, then publish.
Then update your global canonical tag to the same address.
Too many redirects? Old DNS records cause a loop between www and the root domain. Webflow's fix: delete the old records, add the A record 198.202.211.1 and the CNAME www → cdn.webflow.com, click Make default and publish.
Redirect an old page
In Site settings › Publishing › 301 redirects, enter the Old path and Redirect to path, click Add redirect path, and publish. This needs a paid plan.
Source: Webflow Help: Set a default domain · Webflow Help: Fix the too many redirects error · Webflow Help: Set up redirects in Webflow
Framer
Good to know: Framer's domain setup uses the www record to send visitors to the www version.
Connect both versions
In Site Settings › Hosting › Domains, connect your domain. At your domain company, add the two A records on @ (31.43.160.6 and 31.43.161.6) and the CNAME www → sites.framer.app. Remove any other A or AAAA records.
Redirect an old page
In Site Settings › Hosting › Redirects, add the old and new paths, then publish. To move a whole old domain, set that up with the company that hosts the old domain.
Source: Framer Help: Connect a custom domain · Framer Help: Set up redirects
HubSpot
Good to know: when you connect your domain, HubSpot sets up the redirect between the root domain and www for you. SSL turns on automatically, usually within a few minutes and up to four hours.
Force https
- Click the settings icon, then Content › Domains & URLs.
- Next to your domain, choose Actions › Update domain security settings.
- Tick Require HTTPS and click Save. Images or styles loaded over http won't load after this, so update them.
Redirect an old page
- In Content › Domains & URLs, open URL Redirects and click Add URL redirect.
- Fill in Original URL and Redirect to. Permanent (301) is the default.
Source: HubSpot: Connect a domain to HubSpot · HubSpot: SSL and domain security in HubSpot · HubSpot: Create and manage URL redirects
Payload or Sanity
Payload
Good to know: www and https redirects live with your host (see the Code tab), not in Payload. Payload's redirects plugin adds a list of page redirects to the admin, but it doesn't redirect anything by itself. Your site's code has to read the list. Payload's website template does. Ask your developer if a redirect you added doesn't work.
Source: Payload: Redirects plugin
Sanity
Good to know: www and https redirects live with your host (see the Code tab), not in Sanity. Sanity's guide stores page redirects as documents that Next.js reads when the site is built, so a new redirect needs a new deploy.
Check it worked
- Type all four versions of your address into your browser:
http://andhttps://, with and withoutwww. Each should end on your main address. - Use a free redirect or header checker to see the code: you want one 301 or 308, not a chain of two or more.
- Run the Swift Site Audit again. Enter your main address. The URL redirects line should pass.
- In Google Search Console, use the main address's property and submit its sitemap. Google says you don't need the Change of Address tool for a www or https change.
Common mistakes
- A temporary redirect. 302 and 307 don't tell Google which address is the main one. Use 301 or 308.
- A chain. http to https, then to www, is two hops. Send every version straight to the final address.
- Links that still use the old address. Update your menu, sitemap, canonical tag and social profiles, so nobody needs a redirect.
- Two tools redirecting at once. A plugin, the host and a CDN all forcing https can loop. Keep one.
- A certificate for only one version. Both
example.comandwww.example.comneed it, or the redirect shows a warning first. - Switching back later. Google says keep redirects for at least a year.
Fix it yourself, or have us do it
Related
- Fix your canonical tag: name the main address on every page
- Add a sitemap and list it in robots.txt: list only main addresses
- Speed up the server's first reply: every redirect adds to the wait
Sources
Official documentation only. Each link was opened and read on December 5, 2026.


