Skip to content
    Moz logo Menu open Menu close
    • Products
      • Moz Pro
      • Moz Pro Home
      • Moz Local
      • Moz Local Home
      • STAT
      • Moz API
      • Moz API Home
      • Compare SEO Products
      • Moz Data
    • Free SEO Tools
      • Domain Analysis
      • Keyword Explorer
      • Link Explorer
      • Competitive Research
      • MozBar
      • More Free SEO Tools
    • Learn SEO
      • Beginner's Guide to SEO
      • SEO Learning Center
      • Moz Academy
      • MozCon
      • Webinars, Whitepapers, & Guides
    • Blog
    • Why Moz
      • Digital Marketers
      • Agency Solutions
      • Enterprise Solutions
      • Small Business Solutions
      • The Moz Story
      • New Releases
    • Log in
    • Log out
    • Products
      • Moz Pro

        Your all-in-one suite of SEO essentials.

      • Moz Local

        Raise your local SEO visibility with complete local SEO management.

      • STAT

        SERP tracking and analytics for enterprise SEO experts.

      • Moz API

        Power your SEO with our index of over 44 trillion links.

      • Compare SEO Products

        See which Moz SEO solution best meets your business needs.

      • Moz Data

        Power your SEO strategy & AI models with custom data solutions.

      Track AI Overviews in Keyword Research
      Moz Pro

      Track AI Overviews in Keyword Research

      Try it free!
    • Free SEO Tools
      • Domain Analysis

        Get top competitive SEO metrics like DA, top pages and more.

      • Keyword Explorer

        Find traffic-driving keywords with our 1.25 billion+ keyword index.

      • Link Explorer

        Explore over 40 trillion links for powerful backlink data.

      • Competitive Research

        Uncover valuable insights on your organic search competitors.

      • MozBar

        See top SEO metrics for free as you browse the web.

      • More Free SEO Tools

        Explore all the free SEO tools Moz has to offer.

      NEW Keyword Suggestions by Topic
      Moz Pro

      NEW Keyword Suggestions by Topic

      Learn more
    • Learn SEO
      • Beginner's Guide to SEO

        The #1 most popular introduction to SEO, trusted by millions.

      • SEO Learning Center

        Broaden your knowledge with SEO resources for all skill levels.

      • On-Demand Webinars

        Learn modern SEO best practices from industry experts.

      • How-To Guides

        Step-by-step guides to search success from the authority on SEO.

      • Moz Academy

        Upskill and get certified with on-demand courses & certifications.

      • MozCon

        Save on Early Bird tickets and join us in London or New York City

      Unlock flexible pricing & new endpoints
      Moz API

      Unlock flexible pricing & new endpoints

      Find your plan
    • Blog
    • Why Moz
      • Digital Marketers

        Simplify SEO tasks to save time and grow your traffic.

      • Small Business Solutions

        Uncover insights to make smarter marketing decisions in less time.

      • Agency Solutions

        Earn & keep valuable clients with unparalleled data & insights.

      • Enterprise Solutions

        Gain a competitive edge in the ever-changing world of search.

      • The Moz Story

        Moz was the first & remains the most trusted SEO company.

      • New Releases

        Get the scoop on the latest and greatest from Moz.

      Surface actionable competitive intel
      New Feature

      Surface actionable competitive intel

      Learn More
    • Log in
      • Moz Pro
      • Moz Local
      • Moz Local Dashboard
      • Moz API
      • Moz API Dashboard
      • Moz Academy
    • Avatar
      • Moz Home
      • Notifications
      • Account & Billing
      • Manage Users
      • Community Profile
      • My Q&A
      • My Videos
      • Log Out

    The Moz Q&A Forum

    • Forum
    • Questions
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. Home
    2. SEO Tactics
    3. Link Building
    4. Redirect from a previous url

    Moz Q&A is closed.

    After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

    Redirect from a previous url

    Link Building
    2
    5
    1464
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with question management privileges can see it.
    • Gokart
      Gokart last edited by

      Hi - newbie question

      I have a customer who's had previous versions of his website.

      Previously it was known as "princess-interiors.co.uk" (been around for a few years) and is now "princess-design.co.uk" (been around also for a few years).

      New site is WordPress - what would be the best way to redirect (I have access to the previous version of the site which is still hosted).

      I expect it's to use 301, but how would I do that (step by step), and does www. versus non-www need addressing (and how).

      Really concerned, as this site has gone to zero organic visits!!

      Hoping somebody can help.

      Thanks

      1 Reply Last reply Reply Quote 0
      • Gokart
        Gokart last edited by

        Sorted - thanks

        1 Reply Last reply Reply Quote 1
        • Verve-Innovation
          Verve-Innovation @Gokart last edited by

          Hi Mark,

          1. Yes, You have to do that in Previous website from where you want the redirection to happen.

          2.  Anything whichever works best for you. But Fix one and work on it. check in google which version of your site is indexed more by "site:www.domain.com" and "site:domain.com" . Its easy to decide this way.

          Note: Since its wordpress you can do it in the wordpress settings back end.

          Related Thread here :

          https://moz.com/community/q/changing-url-from-non-www-to-www

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

            Hi - thanks for the reply

            The previous site was html - there are two points...

            1. I understand that it's best to map each page using a 301? - do I do that on the previous website?

            2. should I redirect to www or non-www version of new site?

            Cheers

            M

            Verve-Innovation 1 Reply Last reply Reply Quote 0
            • Verve-Innovation
              Verve-Innovation last edited by

              HI Mark,

              What CMS is your Previous version of site ? Is it wordpress or using PHP.  If you find yourself in a situation where you need to redirect a PHP web page that is outside your WordPress installation, you can use a PHP redirect.

              PHP redirect.

              You can redirect a PHP page by adding this line of code to the header:

              header("HTTP/1.1 301 Moved Permanently");

              header("Location: http://www.yournewwebsite.com");

              ?>

              Note that the “301 Moved Permanently” line is necessary to advise search engines that you are using a 301 redirection. You also need to ensure that this code is placed at the top of the page to ensure the redirection works correctly.

              If you would like to use redirection within a theme or plugin you are developing, you can use the WordPress wp_redirect function.

              Redirect a Page Using a WordPress Plugin:

              One easy solution is Quick Page/Post Redirect Plugin. The plugin allows you to perform 301, 302, 307, or meta refresh redirects. Redirection is a another great plugin that features 404 page monitoring. It will show you exactly what pages are generating 404 page errors and allow you to create 301, 302, and 307 redirects, for each of those links.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              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.

              • See all categories

              Related Questions

              • mowafi

                How can i create backlinks from google redirect?

                backlinks link building domain authority

                I found some sites that make backlinks like this. How can I get it too?
                https://maps.google.com/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ad/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ae/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.af/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.ag/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.ai/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.al/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.am/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.co.ao/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.ar/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.as/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.at/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.au/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.az/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ba/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.bd/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.be/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.bf/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.bg/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.bh/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.bi/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.bj/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.bn/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.bo/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.br/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.bs/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.bt/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.co.bw/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.by/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.bz/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ca/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cd/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cf/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cg/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ch/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ci/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.co.ck/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cl/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cm/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cn/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.co/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.co.cr/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.cu/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cv/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.cy/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.cz/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.de/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.dj/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.dk/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.dm/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.do/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.dz/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.ec/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ee/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.eg/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.es/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.et/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.fi/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.fj/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.fm/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.fr/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ga/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ge/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.gg/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.gh/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.gi/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.gl/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.gm/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.gr/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.gt/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.gy/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.com.hk/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.hn/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.hr/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.ht/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.hu/url?sa=t&url=https://www.kokyworld.com
                https://maps.google.co.id/url?sa=t&url=https://www.kokyworld.com
                https://toolbarqueries.google.de/url?q=https://www.kokyworld.com
                https://toolbarqueries.google.de/url?q=https://www.kokyworld.com
                https://toolbarqueries.google.de/url?q=https://www.kokyworld.com
                https://toolbarqueries.google.de/url?q=https://www.kokyworld.com
                https://toolbarqueries.google.de/url?q=https://www.kokyworld.com
                https://www.google.com/url?q=https://www.kokyworld.com
                https://www.youtube.com/redirect?q=https://www.kokyworld.com
                https://maps.google.com/url?sa=t&url=https://www.kokyworld.com
                https://cse.google.de/url?q=https://www.kokyworld.com
                https://clients1.google.co.uk/url?q=https://www.kokyworld.com
                https://cse.google.fr/url?q=https://www.kokyworld.com
                https://clients1.google.it/url?q=https://www.kokyworld.com
                https://cse.google.ca/url?q=https://www.kokyworld.com
                https://cse.google.nl/url?q=https://www.kokyworld.com
                https://cse.google.ru/url?q=https://www.kokyworld.com
                https://clients1.google.pl/url?q=https://www.kokyworld.com
                https://cse.google.cz/url?q=https://www.kokyworld.com
                https://clients1.google.co.in/url?q=https://www.kokyworld.com
                https://cse.google.co.id/url?q=https://www.kokyworld.com
                https://cse.google.com.tw/url?q=https://www.kokyworld.com
                https://cse.google.co.th/url?q=https://www.kokyworld.com
                https://cse.google.com.mx/url?q=https://www.kokyworld.com
                https://clients1.google.com.ua/url?q=https://www.kokyworld.com
                https://cse.google.com.ar/url?q=https://www.kokyworld.com
                https://images.google.com/url?sa=t&url=https://www.kokyworld.com
                https://cse.google.be/url?q=https://www.kokyworld.com
                https://cse.google.se/url?q=https://www.kokyworld.com
                https://clients1.google.pt/url?q=https://www.kokyworld.com
                https://cse.google.ro/url?q=https://www.kokyworld.com
                https://cse.google.gr/url?q=https://www.kokyworld.com
                https://cse.google.hu/url?q=https://www.kokyworld.com
                https://clients1.google.com.tr/url?q=https://www.kokyworld.com
                https://clients1.google.at/url?q=https://www.kokyworld.com
                https://images.google.com.co/url?sa=t&url=https://www.kokyworld.com
                https://cse.google.ch/url?q=https://www.kokyworld.com
                https://clients1.google.fi/url?q=https://www.kokyworld.com
                https://cse.google.dk/url?q=https://www.kokyworld.com
                https://clients1.google.cl/url?q=https://www.kokyworld.com
                https://images.google.com.pe/url?sa=t&url=https://www.kokyworld.com
                https://clients1.google.com.vn/url?q=https://www.kokyworld.com
                https://cse.google.com.sg/url?q=https://www.kokyworld.com
                https://cse.google.no/url?q=https://www.kokyworld.com
                https://clients1.google.co.il/url?q=https://www.kokyworld.com
                https://cse.google.ie/url?q=https://www.kokyworld.com
                https://cse.google.co.kr/url?q=https://www.kokyworld.com

                Link Building | | mowafi
                3
              • Melissacarter

                How to create link from google redirect?

                I have seen redirect links from google but not sure how to create one. Please guide if anyone knows the answer. Example: https://images.google.cv/url?q=https://moz.com

                Link Building | | Melissacarter
                4
              • udaipabla

                Should backlink URLs include www, https, or both???

                My business is located at remotebaba.com, and I am wanting several sites to link to it.
                I am only interested in home page at this point, and we are using HTTPS for our site. Which one of these should I have other sites link to (Please provide complete justification):
                remotebaba.com (my root domain)
                www.remotebaba.com
                https://remotebaba.com
                https://www.remotebaba.com I really appreciate your help!

                Link Building | | udaipabla
                1
              • Mr.Suren

                What Should be the URL of third party blog for my website

                Hi All, What Should be the URL of third party blog for my website. Lets say if i have a website xyz.com (which provide pest control services in New York City) and I want to create third party blogs on platforms like blogspot, weebly etc so should i create the blog url as xyz.blogspot.com or i can use a keyword in the blog URL such as pestcontrolnyc.blogspot.com? Which URL would be the best as per Google's guidelines. Note: I have already have a blog within the domain as xyz.com/blog/ and i do weekly posting on this blog. But at the same time i want to create 1-2 third party blogs to get some backlinks from other sources.

                Link Building | | Mr.Suren
                0
              • JIMBO16

                Back link from site with DA of 72 to a website domain. Clicking on the link redirects to our website not the attended one.

                Hi,
                I've ran a back link check and discovered a good back link to a site which then gets redirected back to my company's website. I have a feeling that an old SEO agency has purchased a small website which has a decent link back from a relevant organisation with a high Domain authority and then redirects the domain to our website to get the link juice. What are your thought on this? Is this really bad practise and possibly damaging? Thanks, Jim

                Link Building | | JIMBO16
                0
              • Total-Design-Shop

                What is the best way to remove a link that redirects to a spammy site?

                I've got a new client and I'm trying to clean up their backlinks. There are several links that all redirect to this spam site http://www.expert-lender.com. All of the websites appear to be real, i.e. http://www.sammorganhomes.com/ but the actual links i.e http://www.sammorganhomes.com/wp-fav/backup/supplement/semitruckleasing.html are in a sub-directory and redirect to the spam site. I don't know if these links were from the previous SEO company or if they paid someone to create these or if these sites have been hacked. Can anyone tell me what is going on here and what should I tell these site owners?

                Link Building | | Total-Design-Shop
                0
              • ProjectLabs

                Value of Link Redirect from Google News

                Some sites are linking to us with the URL from Google News instead of using a direct link. For example: "http://news.google.com/news/url?sa=t&fd=R&usg=ghjgjhggjhgkjghjg&url=http://www.oursite.com/awesome-news-010123/" Does this pass the same value as a normal link? I asked the publisher to replace the link with a normal link but they pushed back saying that the news URL is better.

                Link Building | | ProjectLabs
                0
              • SirMax

                URL shortener and backlinks

                Are there any SEO benefits drawn from creating backlinks with Google url shortener service(especially for the very deep links) or for the do-follow link juice I have to use a complete address?

                Link Building | | SirMax
                0

              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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.