The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. White Hat / Black Hat SEO
    4. 301 redirects for 3 top level domains using WP SEO Yoast

    301 redirects for 3 top level domains using WP SEO Yoast

    White Hat / Black Hat SEO
    14 3 531
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DirkC
      DirkC last edited by

      Hi Justin,

      Could you post an example of the redirect rule you use

      Regarding your internal links pointing to the other sites - a possible solution could be to use relative rather than absolute links. This way you will always stay on the same domain. The disadvantage with relative links is that it's quite easy to create eternal loops if you make a mistake in the code somewhere. If you crawl your site regularly with Screaming Frog however you should be able to detect these errors quite fast.

      Dirk

      edward-may 1 Reply Last reply Reply Quote 0
      • DirkC
        DirkC last edited by

        Hi Justin,

        Think I found the page you mentioned:

        If you want to redirect zenory.co.nz/blog/phone-psychic-readings/ to zenory.co.nz/phone-psychic-readings-at-zenory

        your redirect rule should look something like this (both old & new page should be relative or absolute, I guess in your case the old is put as relative while the new is an absolute url on the .com domain)

        Redirect 301 /blog/phone-psychic-readings/ /phone-psychic-readings-at-zenory

        rgds,

        Dirk

        edward-may 1 Reply Last reply Reply Quote 1
        • edward-may
          edward-may @DirkC last edited by

          Hi Dirk

          Thanks for coming to the rescue again 🙂

          Here is a screenshot I took of the admin side in WP - I created a new page on the main site for Pet Psychic Readings https://www.zenory.com/pet-psychic-readings - I moved this post from the blog (zenory.com/blog/pet-psychic-readings) and entered a 301 redirect to https://www.zenory.com/pet-psychic-readings  - however when I go back to the blog post https://www.zenory.co.nz/blog/category/pets-animals/ (as you can see im on the co.nz - when I click on the article it redirects to the com - and this is because I have set it to go to the .com - but should this not go to the co.nz?  Im not too sure where I need to enter a 301 zenory.co.nz/pet-psychic-readings?

          Here is the screen shot -

          I hope I have answered your question? Let me know if I have the wrong end of the stick

          Cheers again Dirk

          new

          DirkC 1 Reply Last reply Reply Quote 0
          • DirkC
            DirkC @edward-may last edited by

            Hi Justin,

            Correct me if I am wrong - but I guess you use the same backoffice for the three sites. So if you redirect the page to an absolute url on the .com domain all these pages will be redirected to the .com domain.

            I am not really familiar with the Yoast plugin - but could you try to put the redirect url in relative - replace https://www.zenory.com/pet-psychic-readings by /pet-psychic-readings & check if this works?

            rgds,

            Dirk

            edward-may 1 Reply Last reply Reply Quote 1
            • edward-may
              edward-may @DirkC last edited by

              Hi Dirk

              I must of just missed your post -

              I updated it now as per what you were saying

              The post is now zenory.co.nz/blog/phone-psychic-reading 301/ to zenory.com/phone-psychic-readings.  The problem I'm facing as you can see from this scenario - if you went to https://www.zenory.com.au/blog/page/4/ which is the com.au your still on the blog - if you click on the old Phone Psyhic Readings listing - it will take you to zenory.co.nz/phone-psychic-readings (because that is the domain name i have se the 301 redirect too) but for the purpose of stopping the banks links that are crossing each domain - perhaps I'm doing this incorrectly?

              Hope I'm making sense here!

              1 Reply Last reply Reply Quote 0
              • edward-may
                edward-may @DirkC last edited by

                Dirk, Brilliant - that worked 🙂 Omg your a life saver! Thanks so much for fixing this for me! I had no idea what relative was until you mentioned it! Learning everyday from you ! Thanks so much I'm really grateful!

                DirkC 1 Reply Last reply Reply Quote 1
                • DirkC
                  DirkC last edited by

                  Hi Justin,

                  The redirect should not be:

                  zenory.co.nz/blog/phone-psychic-reading 301/ to zenory.com/phone-psychic-readings

                  but

                  /blog/phone-psychic-reading 301/ to /phone-psychic-readings

                  If you add the domains it will only be correct for 1 domain & wrong for the 2 others.

                  Not sure if the plugin can handle this - but it's worth trying.

                  rgds,

                  Dirk

                  edward-may 1 Reply Last reply Reply Quote 1
                  • DirkC
                    DirkC @edward-may last edited by

                    Great! (you can ignore my last answer below - I wrote it before I noticed that you solved it already)

                    Dirk

                    1 Reply Last reply Reply Quote 1
                    • Bob_van_Biezen
                      Bob_van_Biezen last edited by

                      Great to see you found an answer Justin!

                      edward-may 1 Reply Last reply Reply Quote 1
                      • edward-may
                        edward-may @Bob_van_Biezen last edited by

                        Haha Thanks Bob!!! 🙂

                        1 Reply Last reply Reply Quote 0
                        • edward-may
                          edward-may @DirkC last edited by

                          Hi Dirk,

                          I'm trying to create a redirect to the home page of com, com.au and co.nz but what do i put as the relative?   /zenory.com /zenory.co.nz /zenory.com.au to make sure it goes to that site and doesn't cross over? i found linking to category was fine but home page im stuck here.

                          I hope I have explained it clearly

                          Cheers

                          Just

                          DirkC 1 Reply Last reply Reply Quote 0
                          • DirkC
                            DirkC @edward-may last edited by

                            Hi Justin,

                            If you want to redirect to home I guess you should just put / as the destination url (as told - not really an expert in Yoast)

                            I think the rule should look like

                            Redirect 301 /folder_to_be_removed/ /

                            Could you give it a try?

                            rgds

                            Dirk

                            edward-may 1 Reply Last reply Reply Quote 1
                            • edward-may
                              edward-may @DirkC last edited by

                              Hi Dirk,

                              Sorry i only just picked up your message! 🙂 Thanks again for your response!

                              I will try adding what you have suggested, when you /folder_to_be_removed/ - can you explain what that means?

                              1 Reply Last reply Reply Quote 0
                              • 1 / 1
                              • First post
                                Last post
                              • Moving website and domain name without 301 Redirect or rel=canonical
                                VanMaster
                                VanMaster
                                0
                                3
                                225

                              • Is there any SEO impact to using "www" vs. non-"www" preferred domain name?
                                chill986
                                chill986
                                0
                                7
                                13.6k

                              • Redirect a sub-domain to other domain
                                PatrickDelehanty
                                PatrickDelehanty
                                0
                                2
                                88

                              • What sources do you use to keep on top of SEO news?
                                ntcma
                                ntcma
                                1
                                10
                                173

                              • Redirect from old domain to a new domain
                                MoosaHemani
                                MoosaHemani
                                0
                                2
                                81

                              • What is the difference between using .htaccess file and httpd.conf in implementing thousands of 301 redirections?
                                esiow2013
                                esiow2013
                                0
                                5
                                1.1k

                              • 301 redirect from an unwanted non-affiliated domain
                                dohertyjf
                                dohertyjf
                                0
                                3
                                706

                              • How can I make use of multiple domains to aid my SEO efforts?
                                DeltonChilds
                                DeltonChilds
                                0
                                10
                                4.0k

                              Get started with Moz Pro!

                              Unlock the power of advanced SEO tools and data-driven insights.

                              Start my free trial
                              Products
                              • Moz Pro
                              • Moz Local
                              • Moz API
                              • Moz Data
                              • STAT
                              • Product Updates
                              Moz Solutions
                              • SMB Solutions
                              • Agency Solutions
                              • Enterprise Solutions
                              • Digital Marketers
                              Free SEO Tools
                              • Domain Authority Checker
                              • Link Explorer
                              • Keyword Explorer
                              • Competitive Research
                              • Brand Authority Checker
                              • Local Citation Checker
                              • MozBar Extension
                              • MozCast
                              Resources
                              • Blog
                              • SEO Learning Center
                              • Help Hub
                              • Beginner's Guide to SEO
                              • How-to Guides
                              • Moz Academy
                              • API Docs
                              About Moz
                              • About
                              • Team
                              • Careers
                              • Contact
                              Why Moz
                              • Case Studies
                              • Testimonials
                              Get Involved
                              • Become an Affiliate
                              • MozCon
                              • Webinars
                              • Practical Marketer Series
                              • MozPod
                              Connect with us

                              Contact the Help team

                              Join our newsletter
                              Moz logo
                              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                              • Accessibility
                              • Terms of Use
                              • Privacy