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. Question about domain redirects

    Question about domain redirects

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

      One of my clients has an odd domain redirect situation. See if you can get your head round this:

      Domain A is set-up as a domain alias of Domain B

      Entering domain A or domain B takes you to default.asp on domain B.

      The default.asp includes VB script to check the HTTP_HOST variable. It checks whether the main doman name for domain A is present in the HTTP_HOST and if so redirects it to domain A/sub-folder/index.htm. If not present it redirects to domain B/index.htm. In both cases the redirect uses a response.Redirect clause.

      I think what is trying to be achieved is to redirect requests to Domain A to a sub-folder of Domain B.

      It works but seems extremely convoluted.

      Can anyone see problems with this set-up? Will link juice be lost along the redirect paths?

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

        I don't know VB scripting but you could use a RewriteRule with a 301 redirect in your .htaccess file? You can redirect domain A traffic to a subfolder on domain B and by using 301 you'll pass all the juice. I'm not sure if your VB script response.Redirect is generating a 301 or not. If it is then you're probably not losing any juice.

        bjalc2011 1 Reply Last reply Reply Quote 1
        • CPU
          CPU last edited by

          There may be other issues. Is the content the same on the two sites? Why should Google index both if that is the case? Also any inbound links gained may be split between the two domains.

          Seems a little convoluted to me.

          bjalc2011 1 Reply Last reply Reply Quote 1
          • bjalc2011
            bjalc2011 @scanlin last edited by

            Thanks Mike, I didn't create the redirect set-up for this client so I'm not sure why it was done this way. As you say a rewrite rule in the .htaccess file will be my recommendation to the client.

            1 Reply Last reply Reply Quote 0
            • bjalc2011
              bjalc2011 @CPU last edited by

              The content is not duplicated but there are certainly separate inbound links to the two domains.

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

                yes, this is a problem! response.redirect is a 302 - you at a minimum should be using 301.

                however, i recommend you get to the bottom of this and find out what the real intent is here. if one of the domains is old and needs to be shut down then redirects can make sense - but it might all be a mistake. Using 302's shows that whoever set it up didn't know too much about what they were doing 😉

                bjalc2011 1 Reply Last reply Reply Quote 1
                • bjalc2011
                  bjalc2011 @TellThemEverything last edited by

                  Thanks James.

                  TellThemEverything 1 Reply Last reply Reply Quote 0
                  • TellThemEverything
                    TellThemEverything @bjalc2011 last edited by

                    Just to add to this: here is how you 301 in vbscript:

                    <%@ Language=VBScript %> <%' Permanent redirection Response.Status = "301 Moved Permanently" Response.AddHeader "Location", "http://www.domain.com/" Response.End %>

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      Last post
                    • I have a question about the impact of a root domain redirect on site-wide redirects and slugs.
                      Xiano
                      Xiano
                      0
                      2
                      72

                    • How to redirect old domain to new domain.
                      OlegKorneitchouk
                      OlegKorneitchouk
                      0
                      4
                      82

                    • Redirecting a questionable domain to a trusted domain
                      FDFPres
                      FDFPres
                      0
                      4
                      119

                    • Should we 301 redirect our old domain to the new domain
                      sitestrux
                      sitestrux
                      0
                      7
                      440

                    • 301 Redirect for 3 Domains into 1 New Domain
                      JaredMumford
                      JaredMumford
                      0
                      3
                      517

                    • 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

                    • Redirecting root domains to sub domains
                      Yozzer
                      Yozzer
                      0
                      4
                      804

                    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