Redirects from an old subdomain

Redirects from an old subdomain

TamaraKate
Visitor
2 0 1

I just switched from WordPress to Shopify and created a new domain name at the same time. My old site had a shop. subdomain. I have moved my old domain registration to Shopify to redirect traffic, but am having problems: When anyone googles my old shop’s products or anything about what I sell, the listings that appear, when clicked, go to a blank page ‘can’t open the page because the server could not be found”. I was told the pages need to go to a 404 error for the url redirects in Shopify to work. How can I make this happen?

 

Replies 2 (2)

PageFly-Kate
Shopify Partner
1348 372 415

Hi @TamaraKate,

It’s Kate here from PageFly, a Shopify Landing Page Builder app. It sounds like you’re running into a common issue with domain redirects after switching platforms. The good news is it’s fixable! For Shopify’s redirects to work, your old URLs do need to return a 404 error first. Here’s how you can sort it out:

First, you need to create 404 Errors for Old Product Pages (if they still exist). Shopify should automatically show a 404 error for any old pages that no longer exist. But if your old product pages are still active on your old WordPress site or subdomain, you need to make sure they are either deleted or deactivated, so they don’t open a page anymore.
What to do:

  • Visit your old product URLs. If they still open a page (even if it’s a blank one), you need to remove it or set it to show a 404 error on the old site before the redirect can work properly.

You can set up URL redirects in Shopify for your old WordPress URLs. To do this:

  • From your Shopify Admin, go to Online Store > Navigation.
  • Click URL Redirects.
  • Click Create URL Redirect.
  • In the Redirect from field, enter the old URL (e.g., /old-product-page).
  • In the Redirect to field, enter the new Shopify URL (e.g., /new-product-page).
  • Click Save.

Shopify will now redirect any old URLs to the new Shopify pages, as long as the old URLs are showing a 404 error (if they are no longer on your Shopify site).

In case the 404 error page isn’t showing up automatically, you can set up 301 redirects on your old WordPress server (before you transferred the domain) to tell search engines and browsers that the page has permanently moved to the new URL on Shopify.
If you can’t set up 301 redirects manually in Shopify for each old product URL, try these options:

  • Use Shopify apps like Easy Redirects or Bulk Redirects to create multiple redirects.
  • Check if your old WordPress site has an option for bulk 301 redirects, or use a plugin like Redirection to manage redirects before the domain switch.

After setting up the redirects, test a few old product URLs to make sure the redirects are working.
Here’s how:

  • Search for a product on Google and click the link to see if it redirects to the correct page on Shopify.
  • Use a tool like httpstatus.io to check if the URL is showing a 301 redirect (instead of a blank page or 404 error).

Make sure Google Search Console and other search engines know about the redirects, so they don’t continue to index the old URLs. You may need to update your sitemaps and resubmit them for crawling.

 

I hope this clarifies the situation and assists you in resolving the issue. If you have further questions or need additional help, don't hesitate to reach out.

Cheers! Kate | PageFly Team

Please let me know if it works by giving it a Like or marking it as a solution!


Unlock the secrets to a record-breaking BFCM with PageFly and Canva


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)


➜ Weekly updated Shopify tutorials on YouTube


All features are available from the Free plan. Live Chat Support is available 24/7.


TamaraKate
Visitor
2 0 1

Thank you for your in-depth answer. I will give this a try.