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. I have consolidated my subdomains into subfolders; should i remove the subdomains also?

    I have consolidated my subdomains into subfolders; should i remove the subdomains also?

    Technical SEO Issues
    5 3 93
    • 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.
    • McCaldin
      McCaldin last edited by

      Hi,

      I have consolidated my website's many sub-domains into sub-folders.  We had ~20 sub-domains.  The sub-domains and the root domain shared the same code-base and sub-domain specific features were controlled using Apache's SetEnv directive in the httpd.conf includes.

      Now they are consolidated.  I have redirected all of the sub-domains to the relevant sub-folder; so http://sub1.mysite.com now 301 redirects to http://www.mysite.com/sub1.The redirects happen in the htaccess file and all sub-domains and the root are still pointing to the same code-base.

      However, the Moz campaign tracker still occasionally tells me that i have optimisation opportunities at http://sub1.mysite.com and in both Bing and Google webmaster tools traffic to those sub-domains is mentioned.

      Should i delete the subdomains?

      Cheers

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

        Hi,

        To avoid any duplicate content, not having the subdomains is the safest way to do so.

        Check the subdomains with something like the screaming frog, for what is returned, if there is content then you will need to redirect that content.

        Kind Regards

        Jimmy

        McCaldin 1 Reply Last reply Reply Quote 1
        • McCaldin
          McCaldin @DSM_UK last edited by

          Hi Jimmy,

          Thanks for responding and for the advice.  When i hit the old sub-domain with Screaming Frog i get 301 moved permanently and nothing further is crawled.  I Frog-crawled a number of the old URLs and they are all redirecting correctly with 301s.  It looks like there is no duplicate content but i am still a bit uneasy that the old sub-domain shows up in Moz and the webmaster tools..

          MattRoney 1 Reply Last reply Reply Quote 0
          • MattRoney
            MattRoney @McCaldin last edited by

            If everything is redirecting properly, you shouldn't have an issue, and the subdomain still being present will actually be helpful to any folks with an outdated link or bookmark.

            You may want to add noindex to the pages on those subdomains, or block them with robots.txt. Over time, that would get them out of the search results in favor of the new, up-to-date subfolders. Removing them, though, isn't necessary.

            McCaldin 1 Reply Last reply Reply Quote 1
            • McCaldin
              McCaldin @MattRoney last edited by

              Robots.txt!  That makes sense.  I'll do that.

              Thanks for your response.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Subdomain or subfolder?
                NickSamuel
                NickSamuel
                0
                4
                1.6k

              • Moving a subdomain to subfolder with CNAME
                0
                1
                39

              • Removing site subdomains from Google search
                mrdavidingram
                mrdavidingram
                0
                6
                259

              • Subdomain/subfolder question
                paints-n-design
                paints-n-design
                0
                4
                96

              • To Subdomain or Not Subdomain?
                AlanMosley
                AlanMosley
                0
                8
                144

              • Site (Subdomain) Removal from Webmaster Tools
                irvingw
                irvingw
                0
                7
                2.0k

              • Subdomain Removal in Robots.txt with Conditional Logic??
                KeriMorgret
                KeriMorgret
                0
                3
                1.9k

              • How to move my blog from subdomain to subfolder?
                jaraca
                jaraca
                0
                13
                5.5k

              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