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. 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
2.8k
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 Jun 24, 2011, 7:58 AM

    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 Jan 9, 2012, 1:35 PM Jan 9, 2012, 1:35 PM

      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 Jan 7, 2012, 9:54 PM Jan 7, 2012, 9:54 PM

        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 Jan 9, 2012, 1:35 PM Reply Quote 0
        • KeriMorgret
          KeriMorgret last edited by Sep 26, 2011, 4:50 PM Sep 26, 2011, 4:50 PM

          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 Jun 24, 2011, 3:00 PM Jun 24, 2011, 3:00 PM

            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 Jun 24, 2011, 8:38 AM Jun 24, 2011, 8:36 AM

              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 Jun 24, 2011, 8:20 AM Jun 24, 2011, 8:20 AM

                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 Jun 24, 2011, 8:19 AM Jun 24, 2011, 8:19 AM

                  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 Jun 24, 2011, 8:17 AM Jun 24, 2011, 8:17 AM

                    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
                    1 out of 9
                    • First post
                      1/9
                      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

                    • arun.negi

                      We switched the domain from www.blog.domain.com to domain.com/blog.

                      We switched the domain from www.blog.domain.com to domain.com/blog. This was done with the purpose of gaining backlinks to our main website as well along with to our blog. This set us very low in organic traffic and not to mention, lost the backlinks. For anything, they are being redirected to 301 code. Kindly suggest changes to bring back all the traffic.

                      Technical SEO | Nov 12, 2017, 10:15 AM | arun.negi
                      0
                    • snorkel

                      1000 Pages on old website. What to do with the 301 redirects for this domain?

                      Hi Moz Community, I have a 301 redirect question... I just acquired an old domain: Totally in my niche Domain is 14 years old Website exists of 1000 pages Great amount of backlinks Website is offline since about 2 weeks Will place a new website online asap with new url structure For the 50 best scoring pages I wrote a new, but fully comparable/related article. I will put a 301 redirect from those old to the new pages. My question: What to do with the 950 other url's? Should I put a 301 redirect to the homepage? Should I forward those pages to the 404 page? Should I divide the 950 url's with a 301 redirect to the 50 new ones? Another solution maybe? Any idea what would be the best solution so we can save as much Google juice as possible? Thanks in advance!

                      Technical SEO | Feb 14, 2017, 9:21 AM | snorkel
                      0
                    • shawnbeaird

                      301 Redirect for multiple links

                      I just relaunched my website and changed a permalink structure for several pages where only a subdirectory name changed. What 301 Redirect code do I use to redirect the following? I have dozens of these where I need to change just the directory name from "urban-living" to "urban", and want it to catch the following all in one redirect command. Here is an example of the structure that needs to change. Old 
                      domain.com/urban-living (single page w/ content)
                      domain.com/urban-living/tempe (single page w/ content)
                      domain.com/urban-living/tempe/the-vale (single page w/ content) New 
                      domain.com/urban 
                      domain.com/urban/tempe 
                      domain.com/urban/tempe/the-vale

                      Technical SEO | Jan 7, 2017, 3:01 PM | shawnbeaird
                      0
                    • thinkcreativegroup

                      Handling Multiple Restaurants Under One Domain

                      We are working with a client that has 2 different restaurants. One has been established since 1938, the other was opened in late 2012. Currently, each site has its own domain name. From a marketing/branding perspective, we would like to make the customers [web visitors] of the established restaurant aware of the sister restaurant. To accomplish this, we are thinking about creating a landing page that links to each restaurant. To do this, we would need to purchase a brand new URL, and then place each restaurant in a separate sub folder of the new URL. The other thought is to have each site accessed from the main new URL [within sub folders] and also point each existing URL to the appropriate sub folder for each restaurant. We know there are some branding and marketing hurdles with this approach that we need to think through/work out. But, we are not sure how this would impact their SEO––and assume it will not be good. Any thoughts on this topic would be greatly appreciated.

                      Technical SEO | Jan 9, 2014, 6:50 PM | thinkcreativegroup
                      0
                    • malinkymedia

                      Using the word "FREE" in domain name

                      Hi, This may seem like a simple question but a new client of mine wishes to use a domain name with the word "free" in it. The website will offer free activity vouchers. I couldn't see this being a problem as there a lot of websites that do this although he was told it may present a problem with the search engines thinking the site was spammy. It won't be and will be offering information and vouchers on local sporting activities. I was wondering if anybody could clarify this please so I can give him a more definitive answer to his question. Thanks for your help.

                      Technical SEO | Apr 30, 2013, 12:59 PM | malinkymedia
                      0
                    • JollyBoy

                      How to force a trailing slash after the domain name

                      My campaign analysis is predictably listing domain.com and domain.com/ as repeated content. I've searched and searched but cannot find a way to force a trailing slash on the end of the domain name unless there's a file or directory after it.. Is there a way to accomplish this using .htaccess

                      Technical SEO | Mar 10, 2012, 4:04 AM | JollyBoy
                      0
                    • SamTurri

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

                      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!

                      Technical SEO | Dec 7, 2011, 2:37 PM | SamTurri
                      0
                    • wcksmith

                      Keywords in file names vs folder names

                      We understand the value of a keyword phrase included in the URL.  Is there more value to having that phrase in the folder name of the URL or the file name or does it matter? Example: http://www.biztoolsone.com/website-design.php or http://www.biztoolsone.com/website-design/ Which is best? Thanks,  Wick Smith

                      Technical SEO | Jul 1, 2011, 1:37 PM | wcksmith
                      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.