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.

      What is your Brand Authority?
      Moz

      What is your Brand Authority?

      Check yours now
    • 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. Technical SEO
    4. How to 301 multiple domain names to a single 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.

    How to 301 multiple domain names to a single domain

    Technical SEO
    7
    9
    2812
    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.
    • Grenadi
      Grenadi last edited by

      Hey,

      I tried to find and answer to this seemingly simple question, but no luck.

      So, I have one domain name with a website attached to it. I also registered all the other domain names that are similar to it or have different extensions - I want to redirect all the other domain names to my one main domain name without getting penalised by the big G.

      It looks like this:

      www.mainsite.com - this is my main domain

      I also have www.mainsite.com.au, www.mainsite.org, and www.mainsite.org.au which I all want to just redirect to www.mainsite.com

      I have been told that the best way to do this is a 301 redirect, but to do that you need to make a CNAME for all the other domains that points to www.mainsite.com.

      My problem is that I cannot seem to create a CNAME record for http://mainsite.com - I have it working for http://www.mainsite.com but not the non www record.

      What should I be doing differently? Is it just my DNS provider is useless?

      Thanks,

      Anthony

      1 Reply Last reply Reply Quote 0
      • KeriMorgret
        KeriMorgret @Uramark last edited by

        Michael, you might want to open a new question for this, as old threads don't get bumped when new content appears.

        If you don't have any content or anything on the exact match domains, the 301 really isn't going to help you.

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

          Is it black-hat SEO to send bluewidget.com, redwidget.com, and greewidget.com to widgetbrands.com (send all to the same page, or same domain home0?

          Since the domain name matching with keywords is important, this strategy makes sense.  It is allowed? How many domains can I 301 redirect to widgetbrands.com if I want to target all the colors of widgets?

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

            Hi Anthony,

            I'm going through older questions in Q&A. Were you able to sort this out, or are you still looking for answers?

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

              When I've needed to do this, I've been able to go to the control panel at my registrar (godaddy, namecheap, 1and1, etc) and have those domains forwarded with a 301.

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

                If you are doing this at the the DNS level (i.e. CNAME) you actually want an A Record to point all the domain names to the one IP Address. You would then need to do a ReWrite to handle the 301 redirects. You would also need to ensure you verify all the domains in Google Webmaster Tools and set the prefered domain to www.mainsite.com (note you we need to use settings -> prefered domain in site configuration). I would also add a canonical meta tag to the head of each page.

                Since you have the .au is you site Australia wide or international. If it is Australia wide you should have the .com.au as the main web address.

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

                  Do you have access to .htaccess on your server?

                  You could set a simple redirect to redirect all traffic to your website root to the domain you want.

                  Try this....  http://www.affiliatebeginnersguide.com/domains/redirection.html

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

                    Hi

                    A CNAME is not the best way to point a 301 redirect. ( often called poor mans redirect) To know which way to make a 301 rewrite, you first have to know if you are using an Apache server, you are working with PHP,ASP, Cold fusion or ISS.

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

                      Hi there

                      Actualy your website host should be abel to handle this for you, if not you have a seriusly shitty surplier 🙂

                      What you need to have them set up is more commonly known as a "domain alias" so you set up the webhotel with the primary domain and then have them set the other domains up to be aliases to that domain.

                      Or you could use the geeky way out. Set up all the domains to point to the server on where your site is hosted. Have your host setup your server to accept the in coming domains. and then setup the .htaccess (on appache platform) to 301 all other (including subdomains www) to the primary domain.

                      But the easier way out is clearly to have your hosting company set it up for you.

                      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

                      • WayneM.

                        Meta name Author

                        wordpress technical seo meta data

                        Hello! I have a problem. I'm using Rank Math for WordPress. But I can’t configure a basic thing such as <meta name="author" content="" />. I had to insert this code manually using the hook. Does anyone know a normal way to do this markup? Example page: https://b-shoes.com/foot-shaped-shoes/ Thank you!

                        Technical SEO | | WayneM.
                        0
                      • iQi

                        Google is still indexing the old domain a year after 301 redirects are put in place

                        Hi there, You might have experienced this before but for me this is the first. A client of mine moved from domain A (www.domainA.com) to domain B (www.domainB.com). 301 redirects are all in place for over a year. But the old domain is still showing in Google when you search for "site:domainA.com" The HTTP Header check shows this result for the URL https://www.domainA.com/company/cookie-policy.aspx HTTP/1.1 301 Moved Permanently => 
                        Cache-Control => private
                        Content-Length => 174
                        Content-Type => text/html; charset=utf-8
                        Location => https://www.domain_B_.com/legal/cookie-policy
                        Server => Microsoft-IIS/10.0
                        X-AspNetMvc-Version => 5.2
                        X-AspNet-Version => 4.0.30319
                        X-Powered-By => ASP.NET
                        Date => Fri, 15 Mar 2019 12:01:33 GMT
                        Connection => close Does the redirect look wrong? The change of address request was made on Google Console when the website was moved over a year ago. Edit: Checked the domainA.com on bing and it seems that its not indexed, and replaced with domainB.com, which is the right. Just Google is indexing the old domain! Please let me know your thoughts on why this is happening. Best,

                        Technical SEO | | iQi
                        0
                      • inlinear

                        Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?

                        Dear all, starting with my .htaccess file: RewriteEngine On
                        RewriteCond %{HTTP_HOST} ^www.inlinear.com$ [NC]
                        RewriteRule ^(.*)$ http://inlinear.com/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^./index.html 
                        RewriteRule ^(.)index.html$ http://inlinear.com/ [R=301,L] 1. I redirect all URL-requests with www. to the non www-version...
                        2. all requests with "index.html" will be redirected to "domain.com/" My questions are: A) When linking from a page to my frontpage (home) the best practice is?: "http://domain.com/" the best and NOT: "http://domain.com/index.php" B) When linking to the index of a subfolder "http://domain.com/products/index.php" I should link also to: "http://domain.com/products/" and not put also the index.php..., right? C) When I define the canonical ULR, should I also define it just: "http://domain.com/products/" or in this case I should link to the definite file: "http://domain.com/products**/index.php**" Is A) B) the best practice? and C) ? Thanks for all replies! 🙂
                        Holger

                        Technical SEO | | inlinear
                        0
                      • twotd

                        301 redirect not working

                        Hi there! I have recently moved a domain that has been indexed by google and setup redirects so that it forwards to the new domain. It seems like the only redirect that actually is working is the canonical and main domain but every other page and or page nested within a folder are not working. Here is an example of some of the redirects. Am I doing this wrong? It seems to be going to the new domain but can't find the actual pages.... RewriteEngine On
                        RewriteBase /
                        RewriteCond %{HTTP_HOST} !agoodsweep.com$ [NC]
                        RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]
                        redirect 301 woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
                        redirect 301 /westchesterchimney.html http://agoodsweep.com/west-chester-chimney/ Thanks in advance for any help!!

                        Technical SEO | | twotd
                        0
                      • john25181010

                        How well do .ltd.uk domain names rank?

                        Hi all, do .ltd.uk domain names rank well? How well do they stack up against a .com or .co.uk? I'd really appreciate any feedback from people with any experience with these domains. Thanks John

                        Technical SEO | | john25181010
                        0
                      • media-surfer

                        Umlaut in domain

                        Hi, My client wants to expand it's business to Germany and logically we need a domain name to match. We've found a great one and regsiterd several variants to it. However I just found out that in Germany it is possible (while here it's not) to register a domain with an umlaut. My question is: will google assign more value to: schädlinge.de than schadlinge.de when users search for schädlinge? If yes, how large will the difference be? (I will use an umlaut in the title etc) Kind regards,
                        Jason.

                        Technical SEO | | media-surfer
                        0
                      • GAZ09

                        How to increase your Domain Authority

                        Hi Guys, Can someone please provide some pointers on how to best increase your Domain Authority?? Thanks Gareth

                        Technical SEO | | GAZ09
                        0
                      • steffen_

                        Double 301 redirect

                        Hi together, due to some technical reasons I have redirect (301) an existing link two times. Example: www.mydomain.com/root/site.html > 301 > www.mydomain.com/site.html > 301 www.mydomain.com/site_new.html Is there anybody how has got some experience like doing a double redirect? What about link juice? Best regards Steffen

                        Technical SEO | | steffen_
                        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
                      • 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.