Changing Domains - 301 old https to new https
-
Brief History:
Our company made change to a new domain. Both domains had an SSL configured on it in which the old domain SSL was controlled and created by Shopify which gave us limited control. Because we couldn't redirect the old https:// to the new https:// So basically we duplicated our new HTML website and put canonical ref on all duplicate pages to the final domain to help get search to navigate to the newer domain.
Question:
In the near future I would like to take down the old domain and do a 301 domain forwarding. What is the correct course of action to complete this? Our old domain was indexed and SERP results were tied to it's https:// url's.
-
Hi
Cloudflare does not need to be added two times (or to each domain) to work or it would only be used on the old domain for an Automattic 301 redirect to the new site/ domain so I would only use it once to make sure I get the set of 301s for the old domain.
Does that make sense?
(The "yournewdomain.com" does not need to run on Cloudflare only the "yourolddomain.com" domain)
You will then want to see how this is used in the following pattern:
https://yourolddomain.com/*
Select “Forwarding URL” and “301 – Permanent Redirect” for the settings, and input the following rule:
https://newyourdomain.com/$1
The /$1 enables the wildcard part to function. Then click on “Save and Deploy.”
cite: https://woorkup.com/free-url-forwarding/
Let me know if I can be of any help,
Thomas Zickell
-
Thank you for the response Tom - This does make sense and I will implement and let you know how it works out. I have very limited experience with the free Cloudflare account so I do have one question. Does the domain I am forwarding everything need to be controlled by Cloudflare as well? Didn't know if that was needed for everything to play nice.
-
Thomas is right you IF YOU STILL HAVE THE DOMAIN you can use Cloudflare to do 100% Free URL Forwarding With HTTP & https 301 wildcard redirects with no server.
"Because we couldn't redirect the old https:// to the new https:// So basically we duplicated our new HTML website and put canonical ref on all duplicate pages to the final domain to help get search to navigate to the newer domain."
So the canonical ref on all duplicate pages to the new domain will help get Google to navigate to the newer domain but not like a 301 redirect will. So on Shopify, you are pointing the old URLs to the new domains URL's I hope if not please 301 use Cloudflare for 301 domain forwarding
- If so Follow the tutorial below on how setup free URL forwarding with Cloudflare, along with 301 wildcard redirects.
- https://woorkup.com/free-url-forwarding/
if you do change the URL's after the forward slash "/" or don't want Cloudflare to run your old domain so you can take down the old domain and do a 301 domain forwarding you should read the guides below.
- https://builtvisible.com/domain-migration/
- https://moz.com/blog/achieving-an-seo-friendly-domain-migration-the-infographic
- https://searchengineland.com/changing-domain-names-2016-10-easily-overlooked-steps-can-save-seo-248484
this setup, you don't want to duplicate your web site HTTP to HTTPS if needed.
If I where you I would just do what is in this guide the only cost is the cost of your old domain & it will auto line up urls (if you did not change them aside from the domain name.
- Read & use this https://woorkup.com/free-url-forwarding/
Hope this helps,
Tom
-
If I'm correct, you're no longer using the old domain and just redirecting to the new site?
If that's correct, why keep it with Shopify at all, you could instead point it to a different server (or to Cloudflare which'll be able to handle to redirects through page rules without you having to do any code).
The best course of action is to 301 redirect the site to the new site, then on the new site (after checking for issues) submit sitemaps/fetch as google. To speed up this process slightly you can also submit a sitemap for the old site, Google will see the redirect when they try to crawl any page.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Old domain to new domain
Hi, A website on server A is no longer required. The owner has redirected some URLS of this website (via plugin) to his new website on server B -but not all URLS. So when I use COMMAND site:website A , I see a mixture of redirected URLS and not redirected URLS.Therefore two websites are still being indexed in some form and causing duplication. However, weirdly when I crawl with Screaming Frog I only see one URL which is 301 redirected to the new website. I would have thought I'd see lots of URLs which hadn't been redirected. How come it is different to using the site:command? Anyway, how do I move to the new website completely without the old one being indexed anymore. I thought I knew this but have read so many blogs I've confused myself! Should I: Redirect all URLS via the HTACESS file on old website on server A? There are lots of pages indexed so a lot of URLs. What if I miss some? or Point the old domain via DNS to server B and do the redirects in website B HTaccess file? This seems more sensible but does this method still retain the website rankings? Thanks for any help
Technical SEO | | AL123al0 -
Proper 301 redirect code for http to https
I see lots of suggestions on the web for forwarding http to https. I've got several existing sites that want to take advantage of the SSL boost for SEO (however slight) and I don't want to lose SEO placements in the process. I can force all pages to be viewed through the SSL - that's no problem. But for SEO reasons, do I need to do a 301 redirect line of code for every page in the site to the new "https" version? Or is there a way to catch all with one line of code that Google, etc. will recognize & honor?
Technical SEO | | wcksmith10 -
Redirect to new domain
We are moving our website from http://mysyncpad.com to http://syncpadapp.com The old site ranks pretty well for some specific keywords, will a 301 allow the new site to rank as well or will it be penalized by good for the transfer?
Technical SEO | | fifthlayer0 -
301 redirecting old content from one site to updated content on a different site
I have a client with two websites. Here are some details, sorry I can't be more specific! Their older site -- specific to one product -- has a very high DA and about 75K visits per month, 80% of which comes from search engines. Their newer site -- focused generally on the brand -- is their top priority. The content here is much better. The vast majority of visits are from referrals (mainly social channels and an email newsletter) and direct traffic. Search traffic is relatively low though. I really want to boost search traffic to site #2. And I'd like to piggy back off some of the search traffic from site #1. Here's my question: If a particular article on site #1 (that ranks very well) needs to be updated, what's the risk/reward of updating the content on site #2 instead and 301 redirecting the original post to the newer post on site #2? Part 2: There are dozens of posts on site #1 that can be improved and updated. Is there an extra risk (or diminishing returns) associated with doing this across many posts? Hope this makes sense. Thanks for your help!
Technical SEO | | djreich0 -
301 redirectmatch
I think I'm starting to loss my mind. I have worked with regex before with very little problems how with my redirects nothing appears to be working. A little guidance is needed! The Low down I have a site with Joomla CMS backend. The site is undergoing and SEO overhaul I was simple hoping to use a 301 redirect o these old pages that are now a causing 404's The addresses /index.php?option=com_content&view=article&id=46&Itemid=53_blank /shop/product.php?id_product=11 I have tried the following redirects but no avail RedirectMatch 301 ^/shop/product.php?id_product=11$ http://www.nomitang.com/index.php/en/vm_getaway_w this does not work at all if I remove the ?.....ending then I can simply redirect the product page but this is not what we need. Why does RedirectMatch not register anything after the "?"? I also tried this RewriteCond %{HTTP_HOST} ?option=com_content&view=article&id=46&Itemid=53_blank [NC]
Technical SEO | | Stefan-Thorpe
RewriteRule ^(.*)$ http://www.nomitang.com/ [R=301,L] But this also didn't work. Please could someone tell me how to redirect these url's and how to deal with the extrension Thanks Stefan0 -
Merged old wordpress site to new theme and have crazy amount of 4xx and duplicate content that wasn't there before?
URL is awardrealty.com We have a new website that we merged into a new wordpress theme. I just crawled the site with my seomoz crawl tool and it is showing a ridiculous amount of 4xx pages (200+) and we cant find the 4xx pages in the sitemap or within wordpress. Need some help? Am i missing something easy?
Technical SEO | | Mark_Jay_Apsey_Jr.0 -
Domain.com and domain.com/ redirect(error)
When I view my campaign report I'm seeing duplicate content/ meta for mydomain.com and mydomain.com/ (with a slash) I already applied a 301 redirect as follows: redirect 301 /index.php/ /index.php Where am I messing up here?
Technical SEO | | cgman0 -
A client will be translating their entire site into French in addition to English. For SEO purposes, should I host it on the same domain or create its own dedicated domain?
The current site is a long-standing site with good authority and a good number of links. Thanks....
Technical SEO | | JamesBSEO0