
Last updated
www.example.com and example.com are two different addresses, and visitors type both. Pick one as your main address and redirect the other to it with a permanent (301) redirect. Which one you pick does not matter for search engines; using only one does.
The setup depends on whether the domain itself shows a website, or only redirects somewhere else.
For example, an old brand name that should send everyone to your new site. Then there is nothing to choose: add both old-brand.com and www.old-brand.com as sources of the same redirect, and point both to Redirect Ninja. The create form suggests the second one as soon as you enter the first. Together they count as one domain on your bill. Step-by-step guide.
First check your website host or site builder. Many have a setting that redirects the other version for you; if yours does, use it. If it does not, or it only works over http://, Redirect Ninja can handle the version your site does not use, while the site stays where it is.
Only the version that should redirect goes into Redirect Ninja. The version your site lives on keeps its current DNS record and keeps pointing to your host.
| www to non-www | non-www to www | |
|---|---|---|
| Site lives on | example.com | www.example.com |
| Source | www.example.com | example.com |
| Destination | example.com | www.example.com |
| DNS record to change | CNAME www → connect.redirectninja.com | A @ → 75.2.75.160 |
| Leave alone | The record for @ | The record for www |
www.example.com/pricing?ref=ad lands on example.com/pricing?ref=ad, not the home page. How forwarding works.Once the source shows Verified, Redirect Ninja issues its certificate, so https:// on the redirected version works too. Pointing the bare domain somewhere other than an A record? Why the root domain needs an A record.
Enter the redirected version, with a path, in the redirect checker, for example http://www.example.com/pricing. You should see one or two hops ending on https://example.com/pricing with a 200, and a working certificate on every hop. Try https:// as well.
If the checker shows the redirect going back and forth between the two names, your host also redirects in the opposite direction. Turn that setting off, or pick the version your host prefers as the main one.
The 301 redirect does most of the work. Help it along by using the main version everywhere you control: in links between your own pages, in your sitemap, and in the canonical tags of your pages. Which redirect type to choose.

Swift, secure, and effortless — redirect your domains with full HTTPS and ninja precision. Just enter your source and destination, we'll do the rest.