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. On-Page / Site Optimization
    4. How to redirect subdomain to new blog directory

    How to redirect subdomain to new blog directory

    On-Page / Site Optimization
    6 4 195
    • 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.
    • SamCUK
      SamCUK last edited by

      I have moved my wordpress blog from a subdomain to a subdirectory /blog/ on my site. What is the best way to setup a redirect from the subdomain to the new /blog/ directory?

      Or should I just delete the subdomain blog and wait for google to index it on /blog/. I need to do one or the other so as not to run into duplicate content issues.

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

        301 redirect subdomain to subdirectory.  You can often do this in your Cpanel for your server.

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

          Yes agree, 301 redirects are the way to go. I'd want to take a look at incoming links to individual subdomain blog pages before deciding whether to do a single subdomain to subdirectory redirect, or use a page to page mapping and redirect strategy.

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

            Unless you 301-redirect the subdomain to the subdirectory, you will be throwing away all the existing value of the blog, Sam, and will be essentially starting again from scratch.

            It's a simple matter of adding the 301-redirect code to the .htaccess file. There are plenty of examples in other posts here on Q&A. If you can't find one, or need additional help, just let me know.

            But do the redirect! You don't want to throw away all the work done up 'til now.

            Paul

            SamCUK 1 Reply Last reply Reply Quote 1
            • SamCUK
              SamCUK @ThompsonPaul last edited by

              Thanks. It's a new blog and has no links pointing to it so would it be okay just to move it?

              DonnaDuncan 1 Reply Last reply Reply Quote 0
              • DonnaDuncan
                DonnaDuncan @SamCUK last edited by

                Just look at Google webmaster tools to be sure there are no external incoming links. Then go ahead and move it.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • How do I redirect SEO from pages on old website to new website with new domain name?
                  jasongmcmahon
                  jasongmcmahon
                  0
                  5
                  280

                • 301 Redirect from Old website to new website
                  Andy.Drinkwater
                  Andy.Drinkwater
                  0
                  8
                  4.3k

                • How to 301 redirect, without access to .htaccess and to a new domain
                  BruceA
                  BruceA
                  0
                  4
                  3.3k

                • Redirects for new site new urls?
                  scott315
                  scott315
                  0
                  6
                  93

                • Should I Redirect My Subdomain Or Not?
                  Japracool
                  Japracool
                  0
                  5
                  118

                • To redirect or not to redirect...That is the question
                  EGOL
                  EGOL
                  0
                  3
                  189

                • Blog on Subdomain vs. Subdirectory - Best Practices
                  DonnaDuncan
                  DonnaDuncan
                  0
                  9
                  15.3k

                • Which is better, a directory 301 redirect or each page in the directory?
                  Cyrus-Shepard
                  Cyrus-Shepard
                  0
                  5
                  407

                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