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. Subdomain or subfolder?

    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.

    Subdomain or subfolder?

    Technical SEO
    4
    4
    2488
    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.
    • pinder325
      pinder325 last edited by

      Hello,

      We are working on a new site. The idea of the site is to have an ecommerce shop, but the homepage will be a content page, basically a blog page.
      My developer wants to have the blog (home) page on a subdomain, so blog.example.com, because it will be easier to make a nice content page this way, and the the rest of the site will just be on the root domain (example.com). I'm just worried that this will be bad for our SEO efforts. I've always thought it was better to use a sub folder rather than a subdomain. If we get links to the content on the subdomain, will the link juice flow to the shop, on the root domain?

      What are your thoughts?

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

        Hi OP,

        Not sure what your developer is planning on using but you could easily have some sort of combination of a blog + shop using Wordpress and Woo-Commerce.

        Why you would specifically want a blog on the homepage and then a shop within a folder is beyond me (surely the otherway round; e-commer site + a blog), but I know for a fact it would be very easy to do for the average Wordpress developer!

        Kind regards and good luck!

        Nick

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

          The only real info I've seen direct from Google on a similar subject, is on this page:

          • https://support.google.com/webmasters/answer/182192?hl=en

          If you scroll down, there's a table on the page. It's a table of Google's supposed views on the pros and cons of different configurations (e.g: sub-folders vs sub domains) when considering an international roll-out. Obviously your situation is slightly different

          All I'd say is, your home-page is supposed to be the top of the tree. The main page from which all other sub-things (including sub pages and sub domains) stem from

          That being the case - why the heck would you have the homepage on a sub-domain sub-page? It's kind of like building an automobile with its wheels on the roof

          I can't find any specific guidance on why you shouldn't do this. But my suspicion is, no one has felt the need to write much on it because it seems like sheer lunacy

          If you have a developer / designer who can't work with a normal structure, I**'d probably replace them with someone more competent**. That to me sounds like very worrying whinging (and I'm usually someone who backs devs to the hilt!)

          1 Reply Last reply Reply Quote 0
          • Mat_C
            Mat_C Subscriber last edited by

            The question is why would you want to put the homepage of your webshop on a subdomain or subfolder?

            I suppose your developer works with predefined frames for the pages of your webshop. If the homepage requires a different lay-out, the frame should be modified (custom coded). Same goes for your category or tag pages. These should have valuable content too and can't all be placed in different subdomains.

            Regarding the use of subdomain or subfolder, this is a great article: https://www.searchenginejournal.com/subdomains-vs-subfolders-seo/239795/#close

            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

            • Happy-SEO

              Images, CSS and Javascript on subdomain or external website

              Hi guy's, I came across webshops that put images, CSS and Javascript on different websites or subdomains. Does this boost SEO results? On our Wordpress webshop all the sourcescodes are placed after our own domainname: www.ourdomainname.com/wp-includes/js/jquery/jquery.js?ver=1.11.3'
              www.ourdomainname.com/wp-content/uploads/2015/09/example.jpg Examples of other website: Website 1:
              https://www.zalando.nl/heren-home/ Sourcecode:
              https://secure-i3.ztat.net//camp/03/d5/1a0168ac81f2ffb010803d108221.jpg
              https://secure-media.ztat.net/media/cms/adproduct/ad-product.min.css?_=1447764579000 Website 2:
              https://www.bol.com/nl/index.html Sourcecode:
              https://s.s-bol.com/nl/static/css/main/webselfservice.1358897755.css
              //s.s-bol.com/nl/upload/images/logos/bol-logo-500500.jpg Website 3: 
              http://www.wehkamp.nl/ Sourcecode:
              https://static.wehkamp.nl/assets/styles/themes/wehkamp.color.min.css?v=f47bf1
              http://assets.wehkamp.com/i/wehkamp/350-450-layer-SDD-wk51-v3.jpg

              Technical SEO | | Happy-SEO
              0
            • m.m

              Subdomain as News Section instead of Source in Google News?

              Hi, trying to dig into Google News for a large site, mostly containing news.
              The structure of the site network is subdomain.domain.se, and each subdomain has it's own brand with it's own news: x.domain.se
              y.domain.se
              z.domain.se
              etc... Each brand/subdomain is more or less to equate with its own subjectfield/section. In Google News every subdomain is configured with it's own Site Source url, but also having the set up with one section with the same url. It seems like they're getting conflicts in Google News, Google can't always figure out which news article to which brand. Example: an article owned by brand A, but it is sometimes happens that articles getting labeled as brand B in the news SERP, though the link takes you correctly to brand A. I am thinking that this config in News Publisher Center may be a problem? Anyone having any thoughts if that would be better if we delete all source urls except for domain.se-brand and then put all the other subdomains as sections? www.domain.se x.domain.se y.doamin.se z.domain.se Any smart thoughts on this one? Or anything else that could make this wrong labeling (all content included images are hosted in same domain for example). Regards,
              Magnus

              Technical SEO | | m.m
              0
            • Whittie

              Robots.txt on subdomains

              Hi guys! I keep reading conflicting information on this and it's left me a little unsure. Am I right in thinking that a website with a subdomain of shop.sitetitle.com will share the same robots.txt file as the root domain?

              Technical SEO | | Whittie
              0
            • Creditsafe

              No index on subdomains

              Hi, We have a subdomain that is appearing in the search results - I want to hide this as it looks really bad. If I were to add the no index tag to the sub domain would URL would this affect the whole domain or just that sub domain? The main domain is vitally important - it is just that sub domain I need to hide. Many thanks

              Technical SEO | | Creditsafe
              0
            • r1200gsa

              Does an subdomain hosted offsite provide SEO value

              We have a job board hosted through an applicant processing system which we've setup as a subdomain (jobs.ourcompany.com), most of the assets are hosted on our primary domain (ourcompany.com). My question is does having it hosted offsite provide any value? Do we get credit for that content being shared and distributed on the web or does the applicant processing system? As I see it the options are (correct me if I'm wrong): Host the job listings on our primary domain (ourcompany.com/jobs) and have it point to the application on the subdomain. Advertise the job listings pointing to the primary domain on the paid sites. The free job listing sites will automatically point to the sub-domain because the applicant processing system automatically submits them. Host the job listings entirely on the sub-domain applicant tracking system and link to it from our primary site navigation. Advertise the job listings to the sub-domain so that both free and paid point to the same place. Obviously the second one would be much easier just not sure on the technical side of our website getting credit by search engines as the one who has produced the content.

              Technical SEO | | r1200gsa
              0
            • schof

              Should we move our documentation off subdomain?

              Background: We have a popular open source e-commerce platform at http://spreecommerce.com.  Right now the documentation is on http://guides.spreecommerce.com.  We have "edge" documentation (for stuff that's not yet released) on http://edgeguides.spreecommerce.com but since it's largely duplicative we've told google not to index any of the edge stuff (via robots.txt). Question: Should we consider moving the guides under the main website under /docs or something like this?  There's a ton of great content that people often read to learn more about the platform.  Seems like we might be diluting our juice a bit to have it on a separate domain.  WDYT?

              Technical SEO | | schof
              0
            • Prospector-Plastics

              Subdomain vs Main Domain Penalties

              We have a client who's main root.com domain is currently penalized by Google, but the subdomain.root.com is appearing very well. We're stumped - any ideas why?

              Technical SEO | | Prospector-Plastics
              0
            • aactive

              Simple 301 redirect a subfolder to another subfolder

              Hi, I have a number of sub-folders that I have to move, each of which contains a number of files. subfolder A has files a, b & c subfolder B has files d, e & f
              subfolder C has files g, h & i A, B & C folders need to be X, Y & Z Will the following work? RewriteRule ^subfolder-A/* http://www.domain.com/subfolder-X/ [R=301,L]
              RewriteRule ^subfolder-B/* http://www.domain.com/subfolder-Y/ [R=301,L]
              RewriteRule ^subfolder-C/* http://www.domain.com/subfolder-Z/ [R=301,L] will this result in visitors to http://www.domain.com/subfolder-B/f.html being redirected to http://www.domain.com/subfolder-Y/f.html? All on the same domain. in reality we are talking hundreds of sub folders and thousands of files so we don't want to have to reference every file individually in the htaccess. Thanks

              Technical SEO | | aactive
              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.