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
          • How to resolve warning of pages with redirect chain when its your http:// to https://www.
            VelocityWebsites
            VelocityWebsites
            0
            3
            186

          • What do you do with product pages that are no longer used ? Delete/redirect to category/404 etc
            R0bin_L0rd
            R0bin_L0rd
            0
            4
            68

          • Google has indexed m.freedomltd.com/hen-nights/party-locations/london//cocktail-training/ missing a folder.
            GPainter
            GPainter
            0
            5
            106

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

          • When to use mod rewrite / canonical / 301 redirect
            Matt-Williamson
            Matt-Williamson
            0
            2
            149

          • Htaccess code to 301 redirect a folder change
            Paul_MC
            Paul_MC
            0
            4
            160

          • How to link site.com/blog or site.com/blog/
            matbennett
            matbennett
            0
            2
            107

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

          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