The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. 301'ing domain to an addon domain

    301'ing domain to an addon domain

    Technical SEO Issues
    5 2 318
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JasonJackson
      JasonJackson last edited by

      My googlefu failed me in finding this...

      How to 301 a domain to an addon domain? Domain structure is as follows:

      http://addondomain.maindomain.com/

      http://www.maindomain.com/addondomain/

      http://www.addondomain.com/   <--(addon domain has its own domain as well)

      I want main domain to all point to the addon domain like so:

      http://www.maindomain.com/   -->  http://www.addondomain.com/

      1 Reply Last reply Reply Quote 0
      • William.Lau
        William.Lau last edited by

        You can use .htaccess

        RewriteEngine On
        RewriteCond %{HTTP_HOST} \maindomain.com$
        RewriteRule ^(.*)$ http://www.addondomain.com/$1 [R=301,L]

        EDIT: This can also help you and give you more in depth and options to what you want to do.

        http://www.seomoz.org/learn-seo/redirection

        JasonJackson 3 Replies Last reply Reply Quote 1
        • JasonJackson
          JasonJackson @William.Lau last edited by

          will try this out thanks

          1 Reply Last reply Reply Quote 0
          • JasonJackson
            JasonJackson @William.Lau last edited by

            that works close... how can I redirect

            www.maindomain.com/somepage/  -->www.addondomain.com   ?

            as opposed to the current:

            www.maindomain.com/somepage/  -->www.addondomain.com/somepage/

            1 Reply Last reply Reply Quote 0
            • JasonJackson
              JasonJackson @William.Lau last edited by

              Got it to work with this:

              RewriteEngine On
              RewriteCond %{HTTP_HOST} \maindomain.com$
              RewriteRule ^(.*)$ http://www.addondomain.com/ [R=301,L]

              Thanks for the help!  Thumbed and marked as good answer!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • 'domain:example.com/' is this line with a '/' at the end of the domain valid in a disavow report file ?
                LabeliumUSA
                LabeliumUSA
                0
                3
                42

              • 301 redirect after penalty to domain which currently 301 to the penalised domain
                evolvingSEO
                evolvingSEO
                0
                4
                305

              • I've consolidated other domains to a single one with 301 redirects, yet the new domain authority in MOZ is much less that the redirected ones. Is that right?
                MashBonigala
                MashBonigala
                2
                3
                232

              • Buying multiple domains: misspells & .net, org, etc. & 301's
                KevinBudzynski
                KevinBudzynski
                0
                4
                389

              • 301 from old domain to new domain
                Jinx14678
                Jinx14678
                0
                3
                503

              • 301'ing googlebot
                Everett
                Everett
                0
                2
                419

              • How to 301 multiple domain names to a single domain
                KeriMorgret
                KeriMorgret
                0
                9
                1.5k

              • Multiple Domains, Same IP address, redirecting to preferred domain (301) -site is still indexed under wrong domains
                sferrino
                sferrino
                0
                4
                2.9k

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy