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. Blogger /blog Folder level redirect setup using .htaccess

    Blogger /blog Folder level redirect setup using .htaccess

    Technical SEO Issues
    3 2 1.1k
    • 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.
    • Direct_Ram
      Direct_Ram last edited by

      We have a blog currently powered by the free blogger.com website.

      We have set it up as blog.example.com

      we wish to seti it up as example.com/blog

      how can we do this using .htaccess file? we understand how to update htacess, but we don't know what code we should enter to achieve what we want

      our website is hosted on Apache servers with plesk control panel

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

        Hi,

        So if I've understood correctyl you want to redirect your blog.domain.com to domain.com/blog?

        If that's so you have two possible options.

        1. Maintain the old site URI structure. In this case you want to make a 1by1 redirect:
        RewriteRule (.*) http://www.domain.com/blog$1 [R=301,L]

        2. move everything to a compelte new system. In this way it'd be impossible to maintain the old URI so you may want to, create dedicated redirects to you r best urls and use the follwoing
        RewriteRule . http://www.domain.com/blog [R=301,L]

        the htaccess has to be placed in the root folder of your subdomain.

        i hope it makes sense 🙂

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

          thank you!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Redirect /label/ to /tags/
            Taiger
            Taiger
            0
            3
            143

          • Redirect of https:// to http:// without SSL. Possible or not?!
            LesleyPaone
            LesleyPaone
            0
            5
            336

          • Do I use /es/, /mx/ or /es-mx/ for my Spanish site for Mexico only
            RoxBrock
            RoxBrock
            0
            3
            147

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

          • Htaccess help... I moved my blog from a seperate domain to newdomain.com/blog
            KristyO
            KristyO
            0
            7
            509

          • OK to block /js/ folder using robots.txt?
            katemorris
            katemorris
            0
            4
            2.3k

          • Moving a blog from unique domain to root /blog/ but on 2 different servers? HELP!
            SystemIDBarcodes
            SystemIDBarcodes
            0
            15
            693

          • Redirecting blog.<mydomain>.com to www.<mydomain>.com\blog</mydomain></mydomain>
            MarkWill
            MarkWill
            0
            6
            1.3k

          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