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. 301 Redirects

    301 Redirects

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

      Hi,

      I have switched my site from a http .co.uk site to a https .com site.  I have set a 301 redirect in the .htaccess file pointing all traffic going to the original .co.uk site to go to the new https:

      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^up-bus.co.uk$ [OR]
      RewriteCond %{HTTP_HOST} ^www.up-bus.co.uk$
      RewriteRule ^(.*)$ "https://www.up-bus.com/$1" [R=301,L]

      however when i search in google for keywords the original .co.uk site is still registering in search, is there something else I am required to do to tell google to use the new https site instead?  Do i need to do redirects for every page, or is what I have done above sufficient?

      Hope you can help, I am struggling with getting our site to register on google search, any advice greatly welcome

      Thanks in advance,

      Ian

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

        Hi Ian. You can go to Google Search Console, register your ownership of both domains, then go into the gear settings for .co.uk and select "Change of Address" and supply the .com domain. That's one step in the process that can help speed up the change.

        Another is changing from the old address to the new in as many locations as practical where you were linked from the old one. As Google constantly crawls the web it will also notice these changes and add them to the list that says your .co.uk site is now on the .com.  Places include social profiles, business listings, reviews--pretty much any place online where your site interacts.

        1 Reply Last reply Reply Quote 2
        • RobertFisher
          RobertFisher last edited by

          Ian,

          First with the change to .com read what Ryan wrote and follow the change of address steps.

          How long ago did you make the change?

          Take a look at these common problems on HTTPS switch by Cyrus Shepard a year or so ago and see if you have more work to do. (Mistakes are roughly a third of the way down.)

          I will follow the question and am checking our Apache expert re the perfect rewrite rule for this. If he is not on a 100 mile bike ride I should hear from him shortly. Otherwise, maybe tomorrow. I will PM you worst case.

          Best

          imoprojects 1 Reply Last reply Reply Quote 2
          • BlueprintMarketing
            BlueprintMarketing last edited by

            I would speak to your hosting provider it is not a big deal but here are the layouts of what you need to do essentially.

            I hope these answers are helpful some of them are mine some of them are other people that definitely know what they're doing. Robert and Ryan are smart guys as well and listen to what they say.

            https://moz.com/community/q/help-site-traffic-has-dropped-significantly-since-we-changed-from-http-to-https

            https://moz.com/community/q/site-migration-and-traffic-help

            https://www.deepcrawl.com/knowledge/best-practice/the-zen-guide-to-https-configuration/

            USE http://www.robotto.org/

            https://yoast.com/dev-blog/move-website-https-ssl/

            https://www.youtube.com/watch?v=ekvnE4YMeyM#t=23m08s

            #Force www:

            RewriteEngine on

            RewriteCond %{HTTP_HOST} ^example.com [NC]

            RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

            #Force non-www:

            RewriteEngine on

            RewriteCond %{HTTP_HOST} ^www.example.com [NC]

            RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

            More

            https://www.deepcrawl.com/knowledge/tag/https/

            I hope this helps,

            Tom

            1 Reply Last reply Reply Quote 1
            • imoprojects
              imoprojects @RobertFisher last edited by

              Hi Robert,

              thank you for your response made the change around a month ago.  Be great if your apache expert had a perfect re-write rile for this, let me know if you hear of anything

              Thanks again,

              Ian

              RobertFisher 1 Reply Last reply Reply Quote 0
              • RobertFisher
                RobertFisher @imoprojects last edited by

                Ian, Make sure you added your HTTPS version into WMT (search console) and also choose www as preferred domain. Rewrite is fine.

                imoprojects 1 Reply Last reply Reply Quote 1
                • imoprojects
                  imoprojects @RobertFisher last edited by

                  Thanks Robert.  All done 🙂

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  • 301 Redirects Showing As 307 Redirects
                    0
                    1
                    64

                  • To 301 redirect or not...
                    Immanuel
                    Immanuel
                    0
                    7
                    147

                  • 301 redirect
                    Mark.RedGiant
                    Mark.RedGiant
                    0
                    3
                    322

                  • 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

                  • Delete 301 redirected pages from server after redirect is in place?
                    RuthBurrReedy
                    RuthBurrReedy
                    0
                    5
                    4.0k

                  • 301 redirect
                    AlanMosley
                    AlanMosley
                    1
                    27
                    1.9k

                  • 301 Redirects
                    KT684
                    KT684
                    0
                    5
                    711

                  • 301 Redirects
                    rickdronkers
                    rickdronkers
                    0
                    2
                    937

                  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