• ramc-7JcUnB

        See all notifications

        Skip to content
        Moz logo Menu open Menu close
        • Products
          • Moz Pro
          • Moz Pro Home
          • Moz Local
          • Moz Local Home
          • STAT
          • Moz API
          • Moz API Home
          • Compare SEO Products
          • Moz Data
        • Free SEO Tools
          • Domain Analysis
          • Keyword Explorer
          • Link Explorer
          • Competitive Research
          • MozBar
          • More Free SEO Tools
        • Learn SEO
          • Beginner's Guide to SEO
          • SEO Learning Center
          • Moz Academy
          • MozCon
          • Webinars, Whitepapers, & Guides
        • Blog
        • Why Moz
          • Digital Marketers
          • Agency Solutions
          • Enterprise Solutions
          • Small Business Solutions
          • The Moz Story
          • New Releases
        • Log in
        • Log out
        • Products
          • Moz Pro

            Your all-in-one suite of SEO essentials.

          • Moz Local

            Raise your local SEO visibility with complete local SEO management.

          • STAT

            SERP tracking and analytics for enterprise SEO experts.

          • Moz API

            Power your SEO with our index of over 44 trillion links.

          • Compare SEO Products

            See which Moz SEO solution best meets your business needs.

          • Moz Data

            Power your SEO strategy & AI models with custom data solutions.

          Enhance Keyword Discovery with Bulk Analysis
          Moz Pro

          Enhance Keyword Discovery with Bulk Analysis

          Learn more
        • Free SEO Tools
          • Domain Analysis

            Get top competitive SEO metrics like DA, top pages and more.

          • Keyword Explorer

            Find traffic-driving keywords with our 1.25 billion+ keyword index.

          • Link Explorer

            Explore over 40 trillion links for powerful backlink data.

          • Competitive Research

            Uncover valuable insights on your organic search competitors.

          • MozBar

            See top SEO metrics for free as you browse the web.

          • More Free SEO Tools

            Explore all the free SEO tools Moz has to offer.

          NEW Keyword Suggestions by Topic
          Moz Pro

          NEW Keyword Suggestions by Topic

          Learn more
        • Learn SEO
          • Beginner's Guide to SEO

            The #1 most popular introduction to SEO, trusted by millions.

          • SEO Learning Center

            Broaden your knowledge with SEO resources for all skill levels.

          • On-Demand Webinars

            Learn modern SEO best practices from industry experts.

          • How-To Guides

            Step-by-step guides to search success from the authority on SEO.

          • Moz Academy

            Upskill and get certified with on-demand courses & certifications.

          • MozCon

            Save on Early Bird tickets and join us in London or New York City

          Access 20 years of data with flexible pricing
          Moz API

          Access 20 years of data with flexible pricing

          Find your plan
        • Blog
        • Why Moz
          • Digital Marketers

            Simplify SEO tasks to save time and grow your traffic.

          • Small Business Solutions

            Uncover insights to make smarter marketing decisions in less time.

          • Agency Solutions

            Earn & keep valuable clients with unparalleled data & insights.

          • Enterprise Solutions

            Gain a competitive edge in the ever-changing world of search.

          • The Moz Story

            Moz was the first & remains the most trusted SEO company.

          • New Releases

            Get the scoop on the latest and greatest from Moz.

          Surface actionable competitive intel
          New Feature

          Surface actionable competitive intel

          Learn More
        • Log in
          • Moz Pro
          • Moz Local
          • Moz Local Dashboard
          • Moz API
          • Moz API Dashboard
          • Moz Academy
        • Avatar
          • Moz Home
          • Notifications
          • Account & Billing
          • Manage Users
          • Community Profile
          • My Q&A
          • My Videos
          • Log Out

        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. Home
        2. SEO Tactics
        3. Technical SEO
        4. Adding https version of website: how best to redirect

        Moz Q&A is closed.

        After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

        Adding https version of website: how best to redirect

        Technical SEO
        3
        15
        2115
        Loading More Posts
        • Watching

          Notify me of new replies.
          Show question in unread.

        • Not Watching

          Do not notify me of new replies.
          Show question in unread if category is not ignored.

        • Ignoring

          Do not notify me of new replies.
          Do not show question in unread.

        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as question
        Locked
        This topic has been deleted. Only users with question management privileges can see it.
        • bhsiao
          bhsiao last edited by

          If I have 4 versions of my site

          http://www
          http://
          https://www
          https://

          What is the best way to redirect without losing seo positions? i have been mainly using http://www but have recently added my ssl so https works also. I heard at Moz Con that I should get the https working.

          All of my marketing and ads are going to http://www

          301 redirect 3 of them? Which 3? If https is becoming important, should that be my main url? will it hurt my seo to switch?

          Thank you so much in advance!

          1 Reply Last reply Reply Quote 0
          • BlueprintMarketing
            BlueprintMarketing @bhsiao last edited by

            I see you added the certificate but you didn’t force https

            flow the guide and make sure it  all 4 URLs point to the (redirects) to https://www

            you can do it in no time with cloudflare then check it with

            https://varvy.com/tools/redirects/

            hope that helps,

            tom

            1 Reply Last reply Reply Quote 0
            • bhsiao
              bhsiao @BlueprintMarketing last edited by

              I have not already 301'd the site to https. But either url works since I turned on the ssl at my host.

              I will check into the Cloudflare.

              BlueprintMarketing 1 Reply Last reply Reply Quote 1
              • BlueprintMarketing
                BlueprintMarketing @bhsiao last edited by

                Did you allready 301 the site to https?

                if so I would updat the URLs &  then follow the instructions

                if https is in google index I would fix it with a search & replace or CloudFlare (the 1 thing on the list is this url https://raventools.com/blog/free-ssl-http2/ use it if it’s something you want to have do the work

                bhsiao 1 Reply Last reply Reply Quote 1
                • bhsiao
                  bhsiao @BlueprintMarketing last edited by

                  So you recommend just going forward with the https switch even though I have not done all the things on the checklist?

                  BlueprintMarketing 1 Reply Last reply Reply Quote 0
                  • BlueprintMarketing
                    BlueprintMarketing @bhsiao last edited by

                    If it’s hand coded use a text editor & search for http replac with https if using Dreamweaver it has a full site wide search and replace.

                    bhsiao 1 Reply Last reply Reply Quote 0
                    • BlueprintMarketing
                      BlueprintMarketing @bhsiao last edited by

                      Definitely don’t panic and you’re not in trouble. What I would do for his run a search and replace on the URL‘s if you’re running a non CMS site  find a search & replace CLI or script that works with the code you’re site was made with if you’re hosting company is  managing the site ask them for help

                      run the search & replace to fix the URL‘s

                      one way is to just add CloudFlare.com for free and use the felxable cert

                      if your on a CMS like  wordpress you can use a plugin like better search & replace

                      1 Reply Last reply Reply Quote 1
                      • bhsiao
                        bhsiao last edited by

                        I may have made a mess for myself. I turned on the ssl a couple of weeks ago (2-3) but didn't do the other things first. Should i remove the ssl from my site until I go through the checklist? I am starting to panic, hoping i have not gotten myself into big trouble.

                        My internal links, ads, canonical urls all still use http.

                        BlueprintMarketing 2 Replies Last reply Reply Quote 0
                        • bhsiao
                          bhsiao @BlueprintMarketing last edited by

                          Thank you

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

                            See

                            Aleyda Solis The HTTP to HTTPs Migration Checklist in Google Docs to Share, Copy & Download & the SEMrush guide

                            1. https://www.aleydasolis.com/en/search-engine-optimization/http-https-migration-checklist-google-docs/
                            2. https://docs.google.com/spreadsheets/d/1XB26X_wFoBBlQEqecj7HB79hQ7DTLIPo97SS5irwsK8/edit#gid=1975121463
                            3. https://www.semrush.com/blog/http-to-https-a-complete-guide-to-securing-your-website-semrushchat/

                            Hope this helps,

                            Tom

                            bhsiao 1 Reply Last reply Reply Quote 1
                            • BlueprintMarketing
                              BlueprintMarketing @bhsiao last edited by

                              Honestly, the way you set up a 301 is much more dependent on the server like Apache and Nginx then it is on a CMS

                              if you are looking for one I would recommend using WordPress or Drupal for a CMS  If you're thinking of switching  WordPress is much more user-friendly slightly quicker and many many more developers are available to help with it.

                              Tom

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

                                Also James telling somebody to add HSTS with preload is extremely dangerous unless they know without a doubt that their redirects are set up properly it will keep them in the browser improperly for up to six months your advice is to simply add H STS with preload and it was abundantly clear that this person knew that the four URLs were what was to choose from. I included the completed 2 to 5-page references for a complete package.

                                "After a period of time  - and rankings seem ok . - you can implement oscp stapling and some server wide HSTS.   and submit to teh preload directory. "

                                For the record do not employ HSTS with preload until you have determined that all your subdomains if you have any, are going to have HSTS in addition that all your redirects are completely perfect and the way you want them. I would check using a tool called screaming frog Seo spider or my personal favorite deepcrawl.com

                                **Your rankings could be just fine and it would not necessarily show that you have a redirect chain permanently embedded for six months in your set up in less you check it first. **

                                "OCSP stapling is an alternative approach to the original Online Certificate Status Protocol (OCSP) for determining whether an SSL certificate is valid or not. It does this by allowing the web server to query the OCSP responder (a certificate authority’s server dat listens for OCSP requests) and then caches the response__. This allows the web server to check the validity of its certificates and eliminates the need for the client to contact the certificate authority"

                                OCSP can and should be implemented at the time of employing the SSL certificate

                                Tom

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

                                  James,

                                  I don't want to be rude saying this but it sounds like you're telling me the basics of search engine optimization redirects and telling me I did not include it in my response?

                                  I appreciate you pointing out how you read my comment and definitely appreciate your feedback. But if it came across as me telling them to create infinite redirects I am asking you to please read it again.  don't you believe I read the whole post because I'm not talking about the proper protocol?

                                  HTTPS is known as TLS / SSL or Hyper Text Transfer Protocol Secure (HTTPS)

                                  A lot of the terminology you're using is not relevant to the question because once again I provided with them with the code to actually implement this check it for problems and fix what was broken I don't know exactly why you chose to tell me I did it incorrectly but if you would like to outline exactly how I did this incorrectly I would be more than happy to read it as I always open to constructive conservativism

                                  "http://www
                                  http_://_
                                  https://www
                                  https://

                                  What is the best way to redirect without losing SEO positions?"

                                  **My answer was a use www. with HTTPS **

                                  **You need to redirect you're an entire site to whatever canonical your considering use the www. it might be smart to just add the HTTPS://www. and continue with the www. **

                                  Set you're preferred domain (www or non-www) as I do not have their URL I cannot look at rather or not they have a 301 redirects chained as you seem to be implying? But don't worry I took care of it at the end I said please check all this with this tool https://varvy.com/tools/redirects/  that would show any redirects that were forming a redirect chain.

                                  James, I apologize if it was hard for you to follow I thoroughly believe that I gave them everything that they needed to complete the project and I am always here to answer questions.

                                  If you are asked by anybody that present you with four URLs which one they should go with and how they should go about redirecting it I would hope it you would not write what you had written to me.

                                  I am also the only one who gave third-party references and tools to accomplish this task.

                                  I wish you the very best,

                                  Tom

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

                                    It does not matter if you have a CMS or not

                                    You need to redirect your entire site to whatever canonical you want considering use the www. it might be smart to just add the HTTPS and continue with the www. or

                                    Set you're preferred domain (www or non-www)

                                    USE:

                                    https://www.aleydasolis.com/htaccess-redirects-generator/ to make the code needed or use the code below to force HTTPS

                                    HTTP to HTTPS

                                    If your web server is running Apache, you can easily redirect all of your HTTP traffic to HTTPS by adding the following code to your .htaccess is the recommended method for redirecting a site running on Apache.

                                    <code class=" language-php">RewriteEngine On
                                    RewriteCond %{HTTPS} off
                                    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]</code>
                                    

                                    <ifmodule mod_rewrite.c="">RewriteEngine On
                                    RewriteCond %{SERVER_PORT} !^443$
                                    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]</ifmodule>

                                    If your web server is running Nginx, you can easily redirect all of you're HTTP traffic to HTTPS by adding the following code to you're Nginx config file. This is the recommended method for redirecting servers running on Nginx

                                    <code class=" language-php">server {
                                    listen 80;
                                    server_name domain.com www.domain.com;
                                    return 301 https://domain.com$request_uri;
                                    }</code>
                                    

                                    Set you're preferred domain (www or non-www)

                                    https://support.google.com/webmasters/answer/44231

                                    No-WWW

                                    <ifmodule mod_rewrite.c="">RewriteEngine On
                                    RewriteCond %{HTTP_HOST} ^www.example.com$
                                    RewriteRule (.*) https://example.com/$1 [R=301,L]</ifmodule>

                                    WWW

                                    <ifmodule mod_rewrite.c="">RewriteEngine On
                                    RewriteCond %{HTTP_HOST} ^example.com$
                                    RewriteRule (.*) https://www.example.com/$1 [R=301,L]</ifmodule>

                                    one of the best guides on how to add HTTPS

                                    https://www.keycdn.com/blog/http-to-https/

                                    https://kinsta.com/knowledgebase/redirect-http-to-https/

                                    https://www.sslshopper.com/apache-redirect-http-to-https.html

                                    The following will differ from platform to platform. In this example, we will show you how to update your URL. We recommend using a free tool from Interconnect IT called “Database search and replace script in php.” You could run update queries yourself, but there are a lot of tables and metadata fields you will probably miss unless you have an exact list.

                                    We recommend doing dis on a dev server and moving it back, or at least backing up you're database first to be safe as this script does grab your local database credentials. Simply drop their program into the root of your site via FTP. Then browse to it in your browser. (We named our folder “search-replace-db”)

                                    You can tan insert what you want to replace. Make sure you enter all of the formats you have mixed and matched over the years such as:

                                    • http://mydomain.com to https://mydomain.com

                                    • http://www.mydomain.com to https://www.mydomain.com

                                    • https://blog.hubspot.com/blog/tabid/6307/bid/7430/what-is-a-301-redirect-and-why-should-you-care.aspx

                                    • https://a-moz.groupbuyseo.org/learn/seo/redirection

                                    • https://yoast.com/which-redirect/

                                    • https://support.google.com/webmasters/answer/93633?hl=en

                                    Check it with

                                    Redirect mapper | A tool that checks redirects from different versions of ...

                                    <cite class="_Rm">https://varvy.com/tools/redirects/</cite>

                                    Hope this helps,

                                    Tom

                                    1 Reply Last reply Reply Quote 1
                                    • bhsiao
                                      bhsiao last edited by

                                      Thanks James. I don't have a CMS. My pages are all hand coded html pages. (would dearly love to switch to a cms in the future since i have over 100 pages). Does your advice change in anyway?

                                      BlueprintMarketing 1 Reply Last reply Reply Quote 0
                                      • 1 / 1
                                      • First post
                                        Last post

                                      Browse Questions

                                      Explore more categories

                                      • Moz Tools

                                        Chat with the community about the Moz tools.

                                      • SEO Tactics

                                        Discuss the SEO process with fellow marketers

                                      • Community

                                        Discuss industry events, jobs, and news!

                                      • Digital Marketing

                                        Chat about tactics outside of SEO

                                      • Research & Trends

                                        Dive into research and trends in the search industry.

                                      • Support

                                        Connect on product support and feature requests.

                                      • See all categories

                                      Related Questions

                                      • Dan_Tala

                                        My website is constantly decreasing

                                        loss of ranking

                                        For few weeks ago my website is constantly decreasing in search position. I lost keywords and is gooooing down.
                                        Although it is well rated on several on page and off page seo verification software that I have tried.
                                        I checked Google search console and Analytics and found no major problems. However… from one day to another it keeps going down.
                                        I also checked what the main competitors are doing and they are not doing well, at all.
                                        The main competitor actually has a creepy website. Totally devoid of onpage or offpage SEO but with an enormous number of backlinks. And of a very bad quality, which should disqualify it, still…
                                        Few weeks ago I changed something.
                                        In the pages I had H1, 4xH2, no H3 and an H4 without content.
                                        An unnatural H tag structure.
                                        Now I have H1, H2, H3, 3xH4, with the coherent information.
                                        Theoretically, Google should have been “happy” or I’m missing something. I use a SAAS platform.
                                        I just found out that they made changes to the keywords (tags).
                                        I am selling toner cartridges for printers.
                                        So…
                                        The tags are printer models and generate a url in which they have the products.
                                        Ex. https://www.sertit.ro/cartus-imprimanta-cilindru-color-hp-laserjet-pro-m-177fw goes to the products for that printer model.
                                        The question is… should I make tag canonical?
                                        Is it possible for products to loose so much in Google search?

                                        Technical SEO | | Dan_Tala
                                        0
                                      • amitdipsite15022020

                                        Multilingual website

                                        My website is https://www.india-visa-gov.in and we are doing multilingual. There are three options 1. TLD eg india-visa-gov.fr (French) india-visa-gov.de (German) 2. Subdomain eg: fr.india-visa-gov.in (French) de.india-visa-gov.in (German) 3. Folders https://www.india-visa-gov.in/fr/ (French) https://www.india-visa-gov.in/de/ (German) We have tried the 3rd option but need to know whether its better or not for the long term health from SEO. Does the MOZ DA carry better in Subdomain or TLD or Folders? What does MOZ recommend to maintain DA? Thanks

                                        Technical SEO | | amitdipsite15022020
                                        0
                                      • AllChargedUp

                                        How do you fix redirect chains and temporary redirects?

                                        Hi, I have a lot of issues popping up with temporary redirects and redirect chains. I'm still confused as to what exactly redirect chains are and I don't know how to find where the "chains" are or how to fix them. I'm having two issues mainly:1. Temporary RedirectsI have around 100 pages on our www.twowayradiosfor.com website that are being flagged as temporary redirects. All of them have one thing in common: they are review pages (basically, when a customer clicks on the Review button to review a certain product, they are redirected to a review page for that product).URL Example:  https://www.twowayradiosfor.com/reviewhelpful.asp?ProductCode=CLS1410-COMBO&ID=44&yes=noI went into our website and set any URL containing the following as noindex:/review.aspWill that fix the issue? If yes, will I also need to do that for any URL containing /reviewhelpful.asp?2. Redirect ChainsIt seems like basically every product page on my website has this issue (over 100 pages). Here's an example of one:https://www.twowayradiosfor.com/Motorola-CLS1110-p/cls1110.htmI don't see any broken links on this page or links that redirect to another page that redirects, etc. What is causing this? Is it something on my header bar that is redirecting (since that header bar appears on every page, maybe that is why this issue shows up on a lot of pages)?I am new to Moz and still trying to figure this stuff out. I really appreciate any help. Thanks, Sawyer

                                        Technical SEO | | AllChargedUp
                                        0
                                      • joony

                                        Redirecting HTTP to HTTPS - How long does it take Google to re-index the site?

                                        hello Moz We know that this year, Moz changed its domain to a-moz.groupbuyseo.org from www.seomoz.org
                                        however, when you type "site:seomoz.org" you still can find old urls indexed on Google (on page 7 and above) We also changed our site from http://www.example.com to https://www.example.com
                                        And Google is indexing both sites even though we did proper 301 redirection via htaccess. How long would it take Google to refresh the index? We just don't worry about it? Say we redirected our entire site. What is going to happen to those websites that copied and pasted our content? We have already DMCAed their webpages, but making our site https would mean that their website is now more original than our site? Thus, Google assumes that we have copied their site? (Google is very slow on responding to our DMCA complaint) Thank you in advance for your reply.

                                        Technical SEO | | joony
                                        0
                                      • Therealmattyd

                                        301 Redirects in subfolders

                                        Hi, we're making our site into a static site but I would like to transfer the Google juice. Most of the links and database exist on subfolders though. Could I simply do 301 redirects on the subfolders and retain the value or does it have to be on the full domain?

                                        Technical SEO | | Therealmattyd
                                        0
                                      • twotd

                                        301 redirect not working

                                        Hi there! I have recently moved a domain that has been indexed by google and setup redirects so that it forwards to the new domain. It seems like the only redirect that actually is working is the canonical and main domain but every other page and or page nested within a folder are not working. Here is an example of some of the redirects. Am I doing this wrong? It seems to be going to the new domain but can't find the actual pages.... RewriteEngine On
                                        RewriteBase /
                                        RewriteCond %{HTTP_HOST} !agoodsweep.com$ [NC]
                                        RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]
                                        redirect 301 woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
                                        redirect 301 /westchesterchimney.html http://agoodsweep.com/west-chester-chimney/ Thanks in advance for any help!!

                                        Technical SEO | | twotd
                                        0
                                      • JamesDixon70

                                        Google Cache Version and Text Only Version are different

                                        Across various websites we found Google cache version in the browser loads the full site and all content is visible. However when we try to view TEXT only version of the same page we can't see any content. Example: we have a client with JS scroller menu on the home page. Each scroller serves a separate content section on the same URL. When we copy paste some of the page content in Google, we can see that copy indexed in Google search results as well as showing in Cache version . But as soon as we go into Text Only version we cant see the same copy. We would like to know which version we should trust, Google cache version or the TEXT only version.

                                        Technical SEO | | JamesDixon70
                                        0
                                      • Donaab

                                        How best to redirect URL from expired classified ads?

                                        We have problem because our content are classifieds. Every ad expired after one or two mounts and then ad becomes inactive and we keep his page for one mount latter like a same page but we ad a notice that ad is inactive. After that we delete the ad and his page but need to redirect that URL to search results page which contains similar ads because we don't want to lose the traffic form that pages. How is the best way to redirect ad URL? Our thinking was to redirect internal without 301 redirection because the httacces file will be very big after a while  and we are thinking to try a canonicalization because we don't want engine to think that we have to much duplicate content.

                                        Technical SEO | | Donaab
                                        0

                                      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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                                      • Accessibility
                                      • Terms of Use
                                      • Privacy

                                      Looks like your connection to Moz was lost, please wait while we try to reconnect.