Skip to content

Vendor-neutral, engineer-written explanations. Clear definitions first, then practical steps with real examples — no fluff.

How do I set my Shopify domain as the primary URL and redirect all others?

SB
Written by StageBit Engineering Team
Updated December 2025 1 min readVerified by engineers

Shopify allows you to choose one main (primary) domain that customers will always see in their browser. All other domains connected to your store automatically redirect to this primary domain, helping avoid SEO duplication and keeping your branding consistent.

What is a Primary Domain?

Your primary domain is the main web address that:

  • Displays in customer browser address bars
  • Appears in search engines
  • Receives all redirected traffic from other domains

When you should change your primary domain

  • You connected a new branded domain
  • You want to stop showing myshopify.com to customers
  • You are rebranding your business

Set your domain as Primary

  1. From your Shopify admin, go to Settings > Domains
  2. Find the domain you want customers to use
  3. Click the domain
  4. Click Set as primary
  5. Confirm the change

Automatic Redirect Behavior

Once a primary domain is selected, Shopify automatically creates 301 redirects:

  • yourstore.myshopify.com → your primary domain
  • Old custom domains → your primary domain
  • www → non-www or vice versa (based on your setting)

Force HTTPS and Secure Browsing

Shopify also ensures that:

  • All HTTP traffic redirects to HTTPS
  • Your primary domain always loads securely

Verify redirection is working

  1. Open your old domain in a browser
  2. It should automatically redirect to your primary domain
  3. Check that the browser shows the 🔒 secure lock

SEO & Branding Benefits

  • Prevents duplicate content penalties
  • Consolidates SEO rankings
  • Creates a professional branded store URL

Was this answer helpful?

Your feedback helps us improve our answers.

Still need help?

Talk to our Shopify experts

We've handled GDPR/CCPA compliance for dozens of EU & US Shopify stores.

Talk to Shopify Experts

Tell us more about your brand!

Rohit Kundale, Our VP of Sales and Marketing is ready to meet with your team.