
Last updated
To redirect a subdomain such as shop.example.com or blog.example.com to any URL, add the subdomain as the source of a redirect and point it to Redirect Ninja with one CNAME record. Only that subdomain changes: your main domain, its website and its email keep working as they do now.
blog.example.com becomes example.com/blog.shop.example.com or help.example.com now lives at an address on the new provider’s domain.book.example.com sends people to your booking page, jobs.example.com to your careers page.Click Create Redirect, enter the subdomain as the source, for example blog.example.com, and enter the destination. Choose Permanent Redirect (301) if the move is for good, or Temporary Redirect (302) if the subdomain will be used for something else later. 301 or 302?
Several subdomains can go to the same place: add each one as a source of the same redirect.
At the DNS provider for your domain, add or change the record for the subdomain’s name:
| Host / Name | Type | Value |
|---|---|---|
blog | CNAME | connect.redirectninja.com |
blog. Most providers add your domain themselves, so blog.example.com would become blog.example.com.example.com.@ and other names alone.75.2.75.160 instead. A record vs CNAME.Your domain at Cloudflare? Redirect Ninja can create the record for you. The Cloudflare guide.
The subdomain shows Verified once the record is found, usually within minutes, and its HTTPS certificate is issued straight after. How long it takes. Then enter the subdomain in the redirect checker to see where it lands.
When a subdomain’s pages moved into the main site with the same paths, one redirect handles all of them. Set the destination to the new section, for example example.com/blog, and turn on Path forwarding. Then blog.example.com/my-post lands on example.com/blog/my-post, which keeps each page’s search rankings. How path forwarding works.
Pages that changed their address get their own source, such as blog.example.com/old-post. Redirecting specific paths.
*.example.com are not supported, so add every subdomain you want to redirect as a source.www: www.example.com and example.com count as one. Path sources on a subdomain are free.
Swift, secure, and effortless — redirect your domains with full HTTPS and ninja precision. Just enter your source and destination, we'll do the rest.