undefined
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
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • 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.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • 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.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • 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.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • 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
1.5k
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 Aug 24, 2015, 8:36 PM

    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 Aug 24, 2015, 11:07 PM Aug 24, 2015, 11:07 PM

      Sorted - thanks

      1 Reply Last reply Reply Quote 1
      • Verve-Innovation
        Verve-Innovation @Gokart last edited by Aug 24, 2015, 11:07 PM Aug 24, 2015, 11:02 PM

        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 Aug 24, 2015, 9:21 PM Aug 24, 2015, 9:21 PM

          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 Aug 24, 2015, 11:02 PM Reply Quote 0
          • Verve-Innovation
            Verve-Innovation last edited by Aug 24, 2015, 9:16 PM Aug 24, 2015, 9:16 PM

            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
            1 out of 5
            • First post
              1/5
              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 | Oct 29, 2024, 7:39 PM | mowafi
              2
            • John8899

              Redirecting dofollow, high-domain-authority links from one site to another: good idea?

              I have two sites that offer help for freelance writers. The first gets almost no search traffic and is very low priority for me. The second is my main priority and gets substantial search traffic. The low-priority site has a significant number of dofollow backlinks from high-domain-authority sites. Is it a good idea to 301 redirect these links to similar/related posts on my high-priority site? Would this potentially boost the SEO of my high-priority site? Thanks for any help!

              Link Building | Sep 24, 2018, 3:05 PM | John8899
              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 | Jan 6, 2017, 7:06 AM | JIMBO16
              0
            • Sassandgrace

              Redirects affect on page and domain authority

              Hi - excuse me if this is stupid question but I'm rather new to this. Currently the PA for the home page is 16 and the DA 28 and I have some concerns that my efforts are being diluted. When I use OSE on www.sassandgrace.co.uk I get different link results to sassandgrace.co.uk but there is a redirect in place to sassandgrace.co.uk and cannot run a crawl report, for example, on www.sassandgrace.co.uk. The PA and DA are identical for each but the number of links different With a smallish number of links pointing to each but with a redirect in place, am I losing some of the effect or is having the redirect in place giving me all the credit for links to both addresses? Thanks

              Link Building | Jul 1, 2016, 1:01 PM | Sassandgrace
              0
            • zant

              Are "Redirect 303 & Iframe" types of backlinks?

              Are "Redirect 303 & Iframe" types of backlinks? google count them?

              Link Building | Feb 22, 2015, 1:26 PM | zant
              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 | Mar 27, 2012, 6:48 PM | ProjectLabs
              0
            • nyanainc

              Does the complete url count as backlink?

              Hi there, does the http://mysite.com count as a backlink if posted on a site? I post a press releae and the site only allows me to put urls like this. they get something or must be in anchor the url? Thanks

              Link Building | Mar 15, 2012, 11:47 AM | nyanainc
              0
            • FRL

              Why is Google not following a 301 redirect on the robots.txt file?

              Hi Guys, I recently posted a question on the Google Webmasters Forum http://www.google.com/support/forum/p/Webmasters/thread?tid=683e71557db7fd54&hl=en&fid=683e71557db7fd540004a4b4add8cbb6 and didn't get a satisfactory feedback so I thought I will put this to the SEO gurus on here. Perhaps one of you guys might good buddies with Matt and might be able to ask him directly. I actually posted on Matt's blog but he hasn't got back to me. Basically we did a URL restructure for client and set up 301 redirects and saw a huge drop in rankings over time. The 301 redirects seem to work fine and have been tested by many many people. We suspected that google might be ignoring the 301 redirects or devaluing them and so I reviewed the server log to see what is happening when the googlebot crawls the site and it showed that on many occasions the googlebot did not reload the page after hitting a 301 redirect. Sure.. you might say it probably queues it or Google might just be checking that the 301 redirect is still in place but why check so often (with a few hours to a day on the same URL) it even skips a 301 redirect on the robots.txt file i.e. from http://clientsite.com/robots.txt to http://www.clientsite.com/robots.txt.  from non-www to www version. I don't think it is easy to dismiss the skipping of the robots.txt file - this 301 redirect should be loaded immediately to use the instructions the gooblebot requires to crawl the page. Any help will be appreciated. I can sent the server log to anyone personally but I am reluctant to post it on here. Regards, Zan

              Link Building | Jun 2, 2011, 9:20 PM | FRL
              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
            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.