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. Wanted to shift a blog from sub domain to sub directory but...

    Wanted to shift a blog from sub domain to sub directory but...

    Technical SEO Issues
    4 4 175
    • 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.
    • MoosaHemani
      MoosaHemani last edited by

      Ok, I have a client who has their blog up and running on blog.website.com and they are planning to shift the blog to sub-directory www.websire.com/blog.

      The only problem is that the blog and website are hosted on two different servers so is there any way we can shift the blog to sub directory without shifting the blog to the similar server?

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

        Hi Moosa,

        I don't think sub directories can be hosted on different servers. Individual hosting is one of the most critical factors to consider when choosing between a subdomain and a sub directory structure. You will have to bring the blog to the same server as the primary domain.

        Let's see what other tech guys have to say on this.

        Regards,

        Mayank

        1 Reply Last reply Reply Quote 1
        • Marcus_Miller
          Marcus_Miller last edited by

          Hey Moosa

          Not really. There may be a nasty redirection workaround you could implement but a DNS A record can really only point to a domain / sub domain and not to a sub folder.

          To do this the two elements need to be housed on the same server and then you need to redirect all the blog URLs to the new location. You should be able to do this with a fairly simple catch all redirection rule.

          What is the blog software & hosting? Wordpress? It's fairly simple to migrate WordPress in most cases and I have some solid migration scripts for updating the DB if that is of use to you?

          So, some pain to get this working but certainly worth the effort.

          Hope that helps!
          Marcus

          1 Reply Last reply Reply Quote 3
          • Dubs
            Dubs last edited by

            I agree with both Mayank and Marcus above.  To do this, the site and the blog need to be on the same server.  The DNS record can only point to a domain / sub domain... not sub directories (folders).

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Doubt between sub-directory and sub-domain for develop Blog for my business website
              Perfect007
              Perfect007
              0
              4
              169

            • Multilingual Website - Sub-domain VS Sub-directory
              katemorris
              katemorris
              0
              8
              6.4k

            • How to prevent duplicat content issue and indexing sub domain [ CDN sub domain]?
              Dr-Pete
              Dr-Pete
              0
              3
              328

            • Sub-domain or sub-folder for a blog?
              TomRayner
              TomRayner
              0
              2
              133

            • Blog.domain.co.uk or domain.co.uk/blog
              eyepaq
              eyepaq
              0
              4
              279

            • Is it better for our Blog to be blog.domain.tld or domain.tld/blog ?
              JustinTaylor88
              JustinTaylor88
              0
              2
              248

            • Parked Domain blog directory not redirecting
              MarieHaynes
              MarieHaynes
              0
              2
              791

            • Using hyphenated sub-domains or non-hyphenated sub-domains? What is the question! I Any takers?
              dcmike
              dcmike
              0
              11
              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