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.

    • 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
    • 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. Technical SEO
  4. Any way around buying hosting for an old domain to 301 redirect to a new domain?

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.

Any way around buying hosting for an old domain to 301 redirect to a new domain?

Technical SEO
9
17
3.6k
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.
  • SamTurri
    SamTurri last edited by Nov 23, 2011, 8:26 PM

    Howdy.

    I have just read this QA thread, so I think I have my answer. But I'm going to ask anyway!

    Basically DomainA.com is being retired, and DomainB.com is going to be launched.

    We're going to have to redirect numerous URLs from DomainA.com to DomainB.com. I think the way to go about this is to continue paying for hosting for DomainA.com, serving a .htaccess from that hosting account, and then hosting DomainB.com separately.

    Anybody know of a way to avoid paying for hosting a .htaccess file on DomainA.com?

    Thanks!

    1 Reply Last reply Reply Quote 0
    • MarkFasel51
      MarkFasel51 last edited by Dec 7, 2011, 2:37 PM Dec 7, 2011, 2:37 PM

      If I am understanding correctly you want people to access DomainA.com when they go to DomainB.com? If this is the case, you could set up DomainB.com as a Domain Forward to DomainA.com.

      For instance a Client I have right now has www.drcharlescrane.com and www.drcharlescrane.net. Hosting is only set up for .com and we domain forward .net.

      You can also have this set up as a domain forwarding with mask so if you wanted the user would actually see in the URL domainb.com but pulling domaina.com's content.

      I hope this makes sense and if you need further clarification let me know. Also where is your domain registered. I use Godaddy primarily to the low costs for domains. Here is a how to domain forward provided by them and more information on the topic - http://help.godaddy.com/article/422

      1 Reply Last reply Reply Quote 0
      • topic:timeago_earlier,13 days
      • AlanMosley
        AlanMosley @SamTurri last edited by Dec 9, 2011, 3:41 PM Nov 24, 2011, 10:49 PM

        DNS, resolves a name to a ip number,

        that ip number should route to your website. Inthe headers of the resquest is the domain name, your web site should be configured to accept either all requests on a ip number and port or filtered by host headers (domains names), add all teh host headers needed, then in htaccess 30 to the pirmary domain name.

        1 Reply Last reply Reply Quote 1
        • SamTurri
          SamTurri @AlanMosley last edited by Nov 24, 2011, 4:48 PM Nov 24, 2011, 4:48 PM

          Thank you Alan. Are you suggesting that via DNS records I have DomainA.com "live" in the same place as DomainB.com, and then host the .htaccess on DomainB.com's hosting space?

          So somebody requests DomainA.com, the DNS points to the hosting for DomainB.com, and then the .htaccess for DomainB.com can process the original DomainA.com request?

          AlanMosley 1 Reply Last reply Nov 24, 2011, 10:49 PM Reply Quote 0
          • SamTurri
            SamTurri @waqid last edited by Nov 24, 2011, 4:45 PM Nov 24, 2011, 4:45 PM

            Thanks, but does this help with 301s for inner pages?

            1 Reply Last reply Reply Quote 0
            • sesertin
              sesertin @AlanMosley last edited by Nov 24, 2011, 12:20 PM Nov 24, 2011, 12:20 PM

              I had just the same experience. It was only one occasion but I did nothing more to the site then putting it under a new account on my shared hosting, so only the last digit of the ip has changed. I saw a drop in rankings however the original I gained back the original rankings a few weeks later.

              1 Reply Last reply Reply Quote 0
              • AlanMosley
                AlanMosley @sesertin last edited by Nov 24, 2011, 10:57 AM Nov 24, 2011, 10:53 AM

                I cant say it does, but when I changed ips i had a drop in rankings. But i cant prove it was the change in ip
                but there is some logic to it,
                A domain name is resolved to a ip address to find the website, the domain name is sent in the header. Your web site accepts a connection on a socket, ip number and port 123.123.123.123:80, it then looks in the header for the domain name
                so a SE will see a difference, it will know this is not the same address

                sesertin 1 Reply Last reply Nov 24, 2011, 12:20 PM Reply Quote 0
                • PPCnSEO
                  PPCnSEO @sesertin last edited by Nov 24, 2011, 10:47 AM Nov 24, 2011, 10:47 AM

                  100% disagree.

                  Most of the biggest websites in the world use DNS load balancing which will change the IP address of the server every request.

                  301 redirects lose a small amount of juice but IP changes don't.

                  Hosting changes don't (assuming no errors or outages).

                  Who-is changes do, but that is not relevant here.

                  1 Reply Last reply Reply Quote 0
                  • AlanMosley
                    AlanMosley last edited by Dec 9, 2011, 3:43 PM Nov 24, 2011, 6:01 AM

                    1. you need to make a change to your DNS settings.

                    where every you registered your domain, you ned to change your Arecord to point at the correct ip number

                    2. you need to do a 301 redirect to primary domain.

                    SamTurri 1 Reply Last reply Nov 24, 2011, 4:48 PM Reply Quote 1
                    • waqid
                      waqid last edited by Nov 23, 2011, 11:31 PM Nov 23, 2011, 11:31 PM

                      If you have Cpanel here are the instructions. For godaddy or plesk call your host and tell them what you are trying to do.

                      Log into where you purchased domain A and forward it to the name servers at B's hosting. Then go into B Cpanel and click on add on domains. Add your domain. Once the domain has been added go to domain redirects and redirect your old domain to new.

                      For type choose permanent 301

                      Choose the domain you want to redirect from the drop down. Next manually type in your new domain name where it says "redirects to".

                      SamTurri 1 Reply Last reply Nov 24, 2011, 4:45 PM Reply Quote 0
                      • waqid
                        waqid @sesertin last edited by Nov 23, 2011, 11:24 PM Nov 23, 2011, 11:24 PM

                        I think I disagree as moving site A's hosting to a new ip causes a drop in rankings.

                        Never heard about this before. I think this is not true, i have chagned IP's in the past without any consequences.

                        1 Reply Last reply Reply Quote 1
                        • N5c
                          N5c last edited by Nov 23, 2011, 10:42 PM Nov 23, 2011, 10:42 PM

                          You shouldn't have to continue to pay for hosting for the site you are getting rid of, just keep renewing the domain name and then 301 it to the new site and you should be fine.

                          1 Reply Last reply Reply Quote 0
                          • SamTurri
                            SamTurri @EGOL last edited by Nov 23, 2011, 10:39 PM Nov 23, 2011, 10:39 PM

                            Thank you. I'm actually not understanding. How do I Park A on B. What is "explicit .htaccess"?

                            1 Reply Last reply Reply Quote 0
                            • EGOL
                              EGOL @sesertin last edited by Nov 23, 2011, 9:23 PM Nov 23, 2011, 9:23 PM

                              There is no penalty or loss for changing an IP address. There are many legitimat reasons for doing that. IP changes often occr when your host moves your site to a different server, or, when you upgrade your hosting package, or move to a different hosting service. No worries at all about new IPs.

                              1 Reply Last reply Reply Quote 2
                              • cfguti
                                cfguti last edited by Nov 23, 2011, 8:50 PM Nov 23, 2011, 8:50 PM

                                The .htaccess that have the information about the A domain is inside B hosting, so, you don't need anymore A hosting when you do all the redirections.

                                I think this post can help:

                                http://searchenginewatch.com/article/2067216/The-10-Step-Site-Migration-Process

                                bye

                                1 Reply Last reply Reply Quote 2
                                • sesertin
                                  sesertin last edited by Nov 23, 2011, 8:49 PM Nov 23, 2011, 8:49 PM

                                  Egol has usually got great answers that woths linstening to, this time however I think I disagree as moving site A's hosting to a new ip causes a drop in rankings. Put the redirection on top of that and you get some more fallback. I think in the above case I would not change the hosting but do the redirect and wait for google to notice the change. Maybe a few months later I would give up site A's original hosting and migrate it to site B's hosting to be able to keep the original urls live for some more time.

                                  EGOL waqid PPCnSEO AlanMosley 4 Replies Last reply Nov 24, 2011, 10:53 AM Reply Quote -2
                                  • EGOL
                                    EGOL last edited by Nov 23, 2011, 8:31 PM Nov 23, 2011, 8:30 PM

                                    Park A on B and redirect with explicit .htaccess.

                                    SamTurri 1 Reply Last reply Nov 23, 2011, 10:39 PM Reply Quote 4
                                    • 1 / 1
                                    1 out of 17
                                    • First post
                                      1/17
                                      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

                                    • aliho

                                      What is the difference between 301 redirects and backlinks?

                                      i have seen some 301 redirects on my site  billsonline, can anyone please explain the difference between backlinks and 301 redirects,  i have read some articles where the writer was stating  that  301 are not good for website.

                                      Technical SEO | May 9, 2024, 5:14 PM | aliho
                                      0
                                    • DGAU

                                      Can I use a 301 redirect to pass 'back link' juice to a different domain?

                                      Hi, I have a backlink from a high DA/PA Government Website pointing to www.domainA.com which I own and can setup 301 redirects on if necessary. However my www.domainA.com is not used and has no active website (but has hosting available which can 301 redirect). www.domainA.com is also contextually irrelevant to the backlink. I want the Government Website link to go to www.domainB.com - which is both the relevant site and which also should be benefiting from from the seo juice from the backlink. So far I have had no luck to get the Government Website's administrators to change the URL on the link to point to www.domainB.com. Q1: If i use a 301 redirect on www.domainA.com to redirect to www.domainB.com will most of the backlink's SEO juice still be passed on to www.domainB.com? Q2: If the answer to the above is yes -  would there be benefit to taking this a step further and redirect www.domainA.com to a deeper directory on www.domianB.com which is even more relevant?
                                      ie. redirect www.domainA.com to www.domainB.com/categoryB - passing the link juice deeper.

                                      Technical SEO | Jun 16, 2018, 5:22 AM | DGAU
                                      0
                                    • musthavemarketing

                                      301 redirects delay in picking up

                                      Hi I have been involved in the redesign/development of a website which has up until now had a lot of international traffic.  On day of migration I uploaded all the 301 redirects to the website (wordpress) using Simple 301 redirect plugin.  I tested a number of them and they appeared to be working. I also submitted the new sitemaps to Search Console. Since migration international traffic - particularly from countries such as india, Phillipines, Sri Lanka etc have significantly dropped off whereas the local traffic and some of the international traffic such as USA has remained fairly consistent.  Looking at Analytics and entrances recently it appears as though search results are/were showing a number of pages with 404's (one in particular which received significant traffic and for which I had created a 301 redirection) - I have checked this page using the old url and it re-directs correctly for me and today asked a colleague in India to also check - he is getting the redirection fine.  Does Google.in take a significantly longer time to pick these up in search results? Or am I missing something?

                                      Technical SEO | May 26, 2016, 1:40 AM | musthavemarketing
                                      0
                                    • Emory_Peterson

                                      301 Redirects Relating to Your XML Sitemap

                                      Lets say you've got a website and it had quite a few pages that for lack of a better term were like an infomercial, 6-8 pages of slightly different topics all essentially saying the same thing.  You could all but call it spam. www.site.com/page-1 www.site.com/page-2 www.site.com/page-3 www.site.com/page-4 www.site.com/page-5 www.site.com/page-6 Now you decided to consolidate all of that information into one well written page, and while the previous pages may have been a bit spammy they did indeed have SOME juice to pass through. Your new page is: www.site.com/not-spammy-page You then 301 redirect the previous 'spammy' pages to the new page.  Now the question, do I immediately re-submit an updated xml sitemap to Google, which would NOT contain all of the old URL's, thus making me assume Google would miss the 301 redirect/seo juice.  Or do I wait a week or two, allow Google to re-crawl the site and see the existing 301's and once they've taken notice of the changes submit an updated sitemap? Probably a stupid question I understand, but I want to ensure I'm following the best practices given the situation, thanks guys and girls!

                                      Technical SEO | Mar 23, 2015, 2:10 PM | Emory_Peterson
                                      0
                                    • SeaDrive

                                      Redirect root domain to www

                                      I've been having issues with my keyword rankings with MOZ and this is what David at M0Z asked me to do below.   Does anyone have a solution to this?  I'm not 100% sure what to do.  Does it hurt ranking to have a domain at the root or not?  Can I 301 redirect a whole site or do I have to do individual pages. "Your campaign is looking for rankings for the www version of the campaign but the URL resolves as a root domain. This would explain the discrepancy. Since there is no re-direct between the two, you can have brickmarkers.com 301 re-direct to www.site.com  which will prevent you from re-creating your campaign to track the root domain. Once the re-direct is in place it will take a while for Google to show the www version in the results in which your campaign rankings will be accurate." Thanks

                                      Technical SEO | Dec 11, 2013, 1:13 PM | SeaDrive
                                      0
                                    • w0lfiesmithUK

                                      Switching from a .org to .io (301 domain redirect)

                                      I'm considering switching my main site from a .org to .io address; the .org is an exact match domain which helped to kickstart it a few years ago and now has about 50% repeat visitors, but was thrown off the Apple affiliation program for trademark infringement. I've found and purchased a nice (non-infringing) .io domain, and I've read the advice here on how to properly 301 the old domain; but my question is - does it matter that it's .io? Is this going to significantly hurt my rankings, even when everything has been 301'd properly? Another thought I had is that I may actually come out better off in the long run, what with Google penalties being applied to exact match domains. Is this a ranking suicide? If so, I'm tempted to leave it as is; even without the affiliation, it's making a good amount every month in ad fees that I don't want to disrupt. Thanks all!

                                      Technical SEO | Oct 2, 2012, 12:49 PM | w0lfiesmithUK
                                      0
                                    • NaescentAdam

                                      Index.php and 301 redirect with Joomla

                                      Hi, I'm running Joomla 1.7 with SEF on and I'm trying to do a htaccess redirect which fails. I have approximately 100 in effect so far and all working fine, but I have one snag. Index.php is not working as I need it to when it's redirected to www.myurl.com/ If I turn on index.php redirect to root using this code #index.php to root
                                      RewriteCond %{HTTP_HOST} ^myurl.com$ [OR]
                                      RewriteCond %{HTTP_HOST} ^www.myurl.com$
                                      RewriteRule ^index.php$ "http://www.myurl.com/" [R=301,L] And then go to www.myurl.com/test.html I'm redirected to the homepage. I think this is because all pages are index.php in joomla. SEOMOZ and Google both think that index.php and root are duplicate pages. Does anyone have any advice for overcoming this? Thanks, Adam

                                      Technical SEO | Aug 18, 2012, 6:53 AM | NaescentAdam
                                      0
                                    • sboelter

                                      Multiple Domains, Same IP address, redirecting to preferred domain (301) -site is still indexed under wrong domains

                                      Due to acquisitions over time and the merging of many microsites into one major site, we currently have 20+ TLD's  pointing to the same IP address as our "preferred domain:"  for our consolidated website http://goo.gl/gH33w. They are all set up as 301 redirects on apache - including both the www and non www versions. When we launched this consolidated website, (April 2010) we accidentally left the settings of our site open to accept any of our domains on the same IP.  This was later fixed but unfortunately Google indexed our site under multiple of these URL's (ignoring the redirects) using the same content from our main website but swapping out the domain.  We added some additional redirects on apache to redirect these individual pages pages indexed under the wrong domain to the same page under our main domain http://goo.gl/gH33w.  This seemed to help resolve the issue and moved hundreds of pages off the index.  However, in December of 2010 we made significant changes in our external dns for our ip addresses and now since December, we see pages indexed under these redirecting domains on the rise again. If you do a search query of : site:laboratoryid.com you will see a few hundred examples of pages indexed under the wrong domain.  When you click on the link, it does redirect to the same page but under the preferred domain.  So the redirect is working and has been confirmed as 301.  But for some reason Google continues to crawl our site and index under this incorrect domains.  Why is this? Is there a setting we are missing?   These domain level and page level redirects should be decreasing the pages being indexed under the wrong domain but it appears it is doing the reverse. All of these old domains currently point to our production IP address where are preferred domain is also pointing.  Could this be the issue? None of the pages indexed today are from the old version of these sites. They only seem to be the new content from the new site but not under the preferred domain. Any insight would be much appreciated because we have tried many things without success to get this resolved.

                                      Technical SEO | Jun 2, 2011, 3:45 PM | sboelter
                                      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.