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. What is the Redirect Rule for corresponding https urls to new domain with the same https urls?

    What is the Redirect Rule for corresponding https urls to new domain with the same https urls?

    Intermediate & Advanced SEO
    2 1 62
    • 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.
    • WSIDW
      WSIDW last edited by

      2 sites have the same urls but the owner wants just the 1 site. So I will be doing a 301 redirect with .htaccess from

      https://www.example.co.uk/sportsbook/SOCCER/today/

      redirecting to

      https://www.example.com//sportsbook/SOCCER/today/

      There are a lot of urls that are the same, so I was wondering what the rule is to put in the file please that will change them all to the corresponding urls?

      Would this be correct?...

      RewriteEngine on
      RewriteCond %{HTTPS_HOST} ^example.co.uk [NC,OR]
      RewriteCond %{HTTPS_HOST} ^www.example.co.uk [NC]
      RewriteRule ^(.*)$ https://example.com$1 [L,R=301,NC]

      Or would a simple rule like this work... redirect 301 / http://www.new domain.com/

      If not correct could you please give me the correct rule, thanks!

      Then of course doing a change of address of address in webmaster tools after.

      Also... do I still need to do the forwarding from the https://www.example.co.uk/ domain provider after as well?

      Many thanks for your help in advance.

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

        Anyone? lol

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Ranking after redirecting two URLs to a new domain
          craigramsay
          craigramsay
          0
          3
          36

        • Redirecting a Few URLs to a New Domain
          Martijn_Scheijbeler
          Martijn_Scheijbeler
          0
          4
          65

        • Redirecting main www. subdomain to new domain. Can you then create a new subdomain on the old domain?
          RobertFisher
          RobertFisher
          0
          6
          370

        • Redirect old "not found" url (at http) to new corresponding page (now at https)
          KingRosales
          KingRosales
          0
          4
          312

        • Move to new domain with new design and url
          Sheena_Schleicher
          Sheena_Schleicher
          0
          3
          114

        • Redirect old .net domain to new .com domain
          BrandLabs
          BrandLabs
          0
          4
          2.6k

        • Consolidating MANY separate domains into a much better, single URL: Should I point a landing page or redirect to the new site?
          TommyTan
          TommyTan
          0
          2
          226

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

        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