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. On-Page / Site Optimization
    4. After HTTPS upgrade, should I change all internal links, or a general 301 redirect is better?

    After HTTPS upgrade, should I change all internal links, or a general 301 redirect is better?

    On-Page / Site Optimization
    7 3 4.2k
    • 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.
    • micvitale
      micvitale last edited by

      I recently upgraded to https.

      Of course most internal links of my old posts are still http.

      So I set up a 301 redirect in order to make the old link works.

      In terms od SEO this is good or it is better to update all the internal links to https, manually?

      In that case can I do it in batch with a search/replace command in the phmyadmin database?

      any other suggested method?

      thank you

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

        Hi there.

        So, you have all your links absolute? not relative? Gotta be painful to manage..

        Well, anyway, to answer your question - the only bad part about not changing links to https would be that extra redirect. If your servers are good, fast and very reliable, nobody would probably even notice it. I would check loading speeds though, especially for mobiles.

        Personally, I would change all links to relative and never worry about stuff like this. If you want to keep them absolute, then yes, I recommend changing them all. Just for clean conscious sake 🙂

        About find-replace. That would depend on how your website is built. I assume you're talking about wordpress? Then yes, you should be able to. As long as you know where to search.

        Cheers.

        micvitale 2 Replies Last reply Reply Quote 2
        • micvitale
          micvitale @DmitriiK last edited by

          Thank you very much /Dmitrii.

          Can I change them to relative?

          How should I do?

          ChrisAshton 1 Reply Last reply Reply Quote 0
          • ChrisAshton
            ChrisAshton @micvitale last edited by

            Exactly how to implement it will depend on your CMS but basically, all you need to do is update the hyperlinks from showing the entire link path to a simple, relative one like the examples below.

            Absolute Anchor Text

            Relative Anchor Text

            With hyperlinks, if you don't specify the full address path including http://www then the current website path will be added to the beginning. In this example, since there is no full and complete path before /contact, it's correctly assumed that the link is to point to http://www.example.com/contact.

            This is important because it means no matter what changes you make to your domain (www to non-wwww, moving to https, moving the site to a new domain etc) the links will always work perfectly. If you use an absolute path, the minute your change anything about your domain, all the links break because they're manually pointed to the old one.

            Here's a bit more info on the topic if the above is a little confusing. It's not a link to my site, just the first I found in a Google search 🙂

            1 Reply Last reply Reply Quote 0
            • micvitale
              micvitale @DmitriiK last edited by

              but...

              wait a minute. this Moz posts suggests keeping you links absolute is "a priority" , from a seo perspective.

              under point 2):

              https://moz.com/blog/relative-vs-absolute-urls-whiteboard-friday

              ChrisAshton DmitriiK 2 Replies Last reply Reply Quote 0
              • ChrisAshton
                ChrisAshton @micvitale last edited by

                Interesting Giorgio, I hadn't seen that WBF before.

                Absolutely no disrespect to Ruth but that's the first WBF I've disagreed with. The scraper risk is something I'm willing to take a gamble on for the benefits of relative links and the other points are moot if your website is setup correctly (htaccess deals with the potential for different versions of your domain and IMO canonicalization should always be used).

                Going by that WBF, if your site is set up correctly with redirects and canonicalization, the only benefit here is if a scraper copies your site and there's a very slim chance of this actually happening.

                1 Reply Last reply Reply Quote 1
                • DmitriiK
                  DmitriiK @micvitale last edited by

                  Hi again. I've seen it. Quite honestly I disagree with absolutes being a priority. The arguments, presented in that WBF don't really work for me against the pain in development (I believe she mentioned even more drawbacks). Also, from my experience I have not seen any (at all) benefits in any way (SEO or loading speed) from having absolutes, rather than relatives.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  • First post
                    Last post
                  • Site has 302 redirects for HTTP to HTTPS when it should be 301
                    Dalerio-Consulting
                    Dalerio-Consulting
                    1
                    2
                    55

                  • Is it better to shorten my existing url to use only keyword after domain with a 301 redirect from existing url
                    mrkingsley
                    mrkingsley
                    2
                    12
                    96

                  • Internal Links Catalog (too many links)
                    PatrickDelehanty
                    PatrickDelehanty
                    0
                    2
                    307

                  • Page authority still on 1 after url change and 301 redirect
                    genkee
                    genkee
                    0
                    7
                    697

                  • Internal Followed Links and Total Internal Links as 1
                    ChiarynMiranda
                    ChiarynMiranda
                    0
                    3
                    987

                  • Google found bad links delete them or 301 redirect?
                    ShaMenz
                    ShaMenz
                    0
                    5
                    753

                  • 301 redirect link
                    AUSOM
                    AUSOM
                    0
                    4
                    583

                  • Change Homepage internal Link from Image to Targeted Anchor Text -- Spam??
                    DanHill
                    DanHill
                    0
                    5
                    580

                  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