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. Intermediate & Advanced SEO
    4. Mass 301 redirect from a sub-domain - using Joomla or htaccess

    Mass 301 redirect from a sub-domain - using Joomla or htaccess

    Intermediate & Advanced SEO
    3 2 674
    • 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.
    • JohnW-UK
      JohnW-UK last edited by

      How is best to mass redirect old domains - Listing the URL's in htaccess?

      We are looking to use Joomla as a CMS - transferring a blog from a sub-domain to the main site and want to 301 all the sub domain blog posts - any ideas?

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

        Yes, this is the way I do it: Listing the URL's in .htaccess. You should be fine like that.

        Here is an example:

        Redirect 301 /oldpage.html http://www.domain.com/newpage.html

        Notice that the domain is not in the 1st part http://www.domain.com/oldpage.html

        JohnW-UK 1 Reply Last reply Reply Quote 0
        • JohnW-UK
          JohnW-UK @Francisco_Meza last edited by

          Why is the domain only in one part?

          Is there a best practise way to do this - I was going to watch the webinar about the transfer from seomoz to moz...

          So would I create an htaccess file and put it in the subdomain folder blog.domain.com to redirect to domain.com/blog - also how would I create a wildcard redirect for pages I might miss i.e. blog.domain.com/page - to domain.com/blog and these redone pages should I 301 to the blog home or just a 404 page?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Using a Reverse Proxy and 301 redirect to appear Sub Domain as Sub Directory - what are the SEO Risks?
            BlueprintMarketing
            BlueprintMarketing
            0
            4
            1.2k

          • Handling Multiple Domain 301 Redirects on Single htaccess file
            Andy.Drinkwater
            Andy.Drinkwater
            0
            2
            291

          • 301 redirecting staff Domain to Company Domain
            khi5
            khi5
            0
            5
            102

          • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
            PatriotOutfitters81
            PatriotOutfitters81
            0
            3
            66

          • 301 Redirect To Another 301 Redirect
            cbielich
            cbielich
            0
            5
            247

          • Aged domain and 301 redirect? (11 year old domain)
            RCDesign74
            RCDesign74
            0
            5
            2.0k

          • 301 Redirecting multiple domains to brand new domain
            SEODinosaur
            SEODinosaur
            0
            13
            1.7k

          • Should 301 Redirects be used only in cross domains or also internally?
            StephanieChang
            StephanieChang
            0
            6
            2.2k

          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