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. Htaccess Question - Is this the way to go to consolidate?

    Htaccess Question - Is this the way to go to consolidate?

    Intermediate & Advanced SEO
    6 3 88
    • 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.
    • VMLQais
      VMLQais last edited by

      Hi all,

      My site seems to have www.xyz.com, http://www.xyz.com, http://xyz.com and other variations! From an old agency doing this. All showing differing backlinks etc. SO I want to merge them so I can just look at one analytics account - with everything combined.

      I want it just to consolidate all to https:///www.xym.com as the client wants - how do I do this? Does it take long to take effect??

      Also I presume in webmaster I'll have to set up the preferred extension?

      Thanks very much for any advice 🙂

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

        Hi Giles. You'll end up with something similar to this:

        RewriteEngine On
        RewriteCond %{HTTPS} !=on
        RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]

        RewriteRule ^page1(.*) https://%{SERVER_NAME}/page1$1 [R,L]

        The first being an example of redirecting an entire domain to HTTPS and the second, a specific page.

        The effects of the redirection are immediate in the sense that once the .htaccess file is changed the redirection will be in place. What takes a longer amount of time is for the change to carry over in Google's ranking and throughout the web. Using the tools in GWT and Bing can help.

        Here are a couple of guides that you might find useful: http://moz.com/blog/web-site-migration-guide-tips-for-seos and http://moz.com/learn/seo/redirection.

        donford 1 Reply Last reply Reply Quote 0
        • donford
          donford @RyanPurkey last edited by

          Ryan,
          I was going to mention this but after I re-read it. It seems he is dealing with an issue inside Google Webmaster Central that shows reports for more then one domain. I have seen this before where they list domains like

          http://www.site.com
          http://www.site.com/shop
          http://www.site.com/

          Each showing different metrics.

          Please correct me if I'm wrong.

          RyanPurkey VMLQais 2 Replies Last reply Reply Quote 0
          • RyanPurkey
            RyanPurkey @donford last edited by

            Excellent addition. Probably a combination of both since he states that the client wants to migrate to HTTPS. We'll have to get clarification from Giles.

            1 Reply Last reply Reply Quote 0
            • VMLQais
              VMLQais @donford last edited by

              It's actually just by looking at link reports to the variations that I can see they fluctuate with differing versions. So I'm looking for a simple way to make sure all the prefixes redirect to https://. Thanks for the comments so far.

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

                We can help you get all those urls to point to the https on the server. But what reports are you referring to?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Best way to go about merging 2 sites with significant search volume?
                  EGOL
                  EGOL
                  0
                  2
                  55

                • Best way to link to 1000 city landing pages from index page in a way that google follows/crawls these links (without building country pages)?
                  lcourse
                  lcourse
                  0
                  7
                  54

                • Few question about SEO
                  Eric_Rohrback
                  Eric_Rohrback
                  0
                  3
                  109

                • Backlink Questions
                  MonicaOConnor
                  MonicaOConnor
                  0
                  3
                  172

                • Quick htaccess question
                  Modi
                  Modi
                  0
                  3
                  130

                • .htaccess question/opinion/advice needed
                  0
                  1
                  150

                • Best Way to Consolidate Domains?
                  essdee
                  essdee
                  0
                  7
                  438

                • 301 redirect via htaccess question
                  Audiohype
                  Audiohype
                  0
                  4
                  404

                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