Redirecting an old website to a new Shopify store

Hi there!

I’m on the homestretch of a website project for a client and I need help redirecting traffic from her old URL to her new shopify store.

Her old website, which is hosted through Weebly is www.eatxactlycakes.com.

While working on her new Shopify site we purchased a domain through shopify: www.eatxactlysweetcafe.com

My question is how do I get her old site to redirect to the new Shopify homepage?

AND if how long does should she keep the old domain/website (does she need to), once the redirect is active?

Thanks!

Rachel

Hi,

In principle, there are two possibilities:

  1. Redirect all urls directly with the new path to the new domain. This is the best option, as you then only need one 301 redirect.
  2. First redirect everything with the old path to the new domain and then redirect to the new path with Shopify’s redirect function and another redirect. That is then two redirects. If SEO backlinks play a role, this is not so good, otherwise it wouldn’t matter.

If you are on Apache, then the first possibility will need a big .htaccess on www.eatxactlycakes.com. You must create a mapping old url → new url and list everything in .htaccess. That could look as follows then.

RewriteEngine On
Redirect 301 / https://www.eatxactlysweetcafe.com/
Redirect 301 /old-url1 https://www.eatxactlysweetcafe.com/new-url1
Redirect 301 /old-url2 https://www.eatxactlysweetcafe.com/new-url2
...

All urls must be listed here.

The second possibility would mean that you create a short .htaccess on www.eatxactlycakes.com which could look as follows.

RewriteEngine On
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ https://www.eatxactlysweetcafe.com/$1 [L,R=301]

This will simply redirect everything with the old path to Shopify.

Here, too, you need a mapping. But you can use the Shopify redirect function.

This is described on Shopify under:
https://help.shopify.com/en/manual/online-store/menus-and-links/url-redirect#import-your-url-redirects

You have to create a csv file in which the old paths and the new paths are specified. And this file must then be imported into Shopify.

Your question about how long to keep the old domain: If you don’t have a significant number of SEO-backlinks, then you can give up the old domain after Google has made the switch. I.e.: After some weeks.

If you have important backlinks, then it will be necessary to keep the old domain as long as you want to keep the backlinks.

Hi @rsotak .

Thanks for reaching out!

You can learn more on how to connect your existing domain to point to your new Shopify website. That way, whenever someone clicks on www.eatxactlycakes.com it will take them to their brand new Shopify store. You can keep this domain to redirect until it’s expired.

I’m curious to learn more about the store and what type of products or services they’ll be offering. Just so you know, we are not only here to help out with tricky technical questions but also to help you grow your business and provide marketing tips, so if you have any questions, just shout!