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. How to redirect subfolder on different domain to another but same ftp

    How to redirect subfolder on different domain to another but same ftp

    Technical SEO Issues
    2 2 237
    • 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.
    • bigrat95
      bigrat95 last edited by

      Hi i was wondering how can we redirect all subfolder under language repertory from a domain name to another domain name. The thing is that these 2 domain are on the same IP.

      Exemple

      Domain1.com/en to Domain2.com/en

      Domain1.com/fr to Domain2.com/fr

      I already redirected my domain with this code

      RewriteEngine On
      RewriteCond %{HTTP_HOST} !^www\.olddomain\.com$
      RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
      
      RewriteCond %{HTTP_HOST} !^olddomain\.com$
      RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
      
      Should i apply this code in my .htacces in the subfolder fr and en?
      
      1 Reply Last reply Reply Quote 0
      • Stramark
        Stramark last edited by

        .htacces is supposed to be in the root. It is a server file not a CMS file.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Will doing a 301 redirect for one domain to another give the latter domain the formers links?
          mickburkesnr
          mickburkesnr
          0
          5
          128

        • I have a sub domain that has live content on it but the root domain redirects to another URL. I know this is not great but what are the implications?
          mjsikorsky
          mjsikorsky
          0
          3
          96

        • I've consolidated other domains to a single one with 301 redirects, yet the new domain authority in MOZ is much less that the redirected ones. Is that right?
          MashBonigala
          MashBonigala
          2
          3
          232

        • Simple 301 redirect a subfolder to another subfolder
          EricaMcGillivray
          EricaMcGillivray
          0
          3
          7.6k

        • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
          Chris-CA
          Chris-CA
          0
          5
          456

        • 301 redirect domain to page on another domain
          YNWA
          YNWA
          0
          2
          562

        • Can I do a redirect to a new domain name only a couple of weeks after having redirected to another domain?
          Francisco_Meza
          Francisco_Meza
          0
          4
          428

        • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
          Room214
          Room214
          0
          7
          1.1k

        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