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. We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?

    We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?

    Intermediate & Advanced SEO
    8 3 437
    • 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.
    • Caffeine_Marketing
      Caffeine_Marketing last edited by

      We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?

      Thant way all forms of the website are pointing to one version?

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

        Ideally, yes.

        However, it's not likely to have a massive impact if you do have a redirect chain first to www and then to https.

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

          if you talking about the domain

          you should 301 redirect each of the 3 of 4 different URLs to the one you want to be the primary domain that is using https

          This is a great guide

          https://ahrefs.com/blog/301-redirects/

          You can always use CloudFlare as free & easy fix.

          If you want to use HSTS preload or just HSTS

          Test your 301 setup using

          https://hstspreload.org/?domain=example.com

          If you are using https://www.  as the primary

          See you must force http to https and the HTTP://www

          Must redirect to the https:// bare domain so that means two redirects.

          Error: No redirect from HTTPhttp://example.com does not redirect to https://example.com.

          Hope this helps,

          Tom

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

            Thank you for the advice it is very useful.

            In GWT we are also showing redirects on all pages from the non / page to the / page

            ie cardiff.co.uk redirects to  cardiff.co.uk/

            is this OK?

            BlueprintMarketing 3 Replies Last reply Reply Quote 0
            • BlueprintMarketing
              BlueprintMarketing @Caffeine_Marketing last edited by

              It is fine to 301 redirect to** "/"** you need to pick forward slash "/" or no forward slash.

              • SEE:
              • https://webmasters.googleblog.com/2010/04/to-slash-or-not-to-slash.html
              • https://www.seroundtable.com/google-trailing-slashes-url-24943.html

              You should force HTTPS

              • http://cardiff.co.uk 301's to http://www.cardiff.co.uk/
              • See: https://i.imgur.com/fg34sXR.png
              • You should add https
              • https://dash.cloudflare.com/sign-up
              • or
              • https://www.rapidtables.com/web/tools/redirect-generator.html

              Add a SSL cert I would just add cloudflare.com (if you want fast & easy also Free)

              • https://support.cloudflare.com/hc/en-us/articles/204144518
              • https://support.cloudflare.com/hc/en-us/articles/200172286-Configuring-URL-forwarding-or-redirects-with-Cloudflare-Page-Rules

              When configuring Page Rules, the Always use HTTPS action is the simplest method to redirect HTTP requests to HTTPS.  You can also use the Forwarding URL action with a 301 redirect if you need to redirect to another subdomain in addition to forcing HTTPS. For example, a Page Rule match for

              **_http://_cardiff.co.uk_/*_**
              

              with a _Forwarding URL _of

              **_https://www.cardiff.co.uk/$1_**
              

              https://www.cardiff.co.uk/

              ASP.NET

              or ASP.NET

              <%@ Language="VBScript" %>
              <%
              ' ASP permanent URL redirect - generated by www.rapidtables.com
              Response.Status="301 Moved Permanently"
              Response.AddHeader "Location", "https://www.cardiff.co.uk/"
              Response.End
              %>

              Redirect entire domain from HTTP to HTTPS

              RewriteEngine On
              RewriteCond %{HTTPS} off
              RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
              

              Redirect entire domain from non-www to www and HTTP to HTTPS

              RewriteEngine On
              RewriteCond %{HTTP_HOST} !^www\. [NC]
              RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
              RewriteCond %{HTTP:X-Forwarded-Proto} !https
              RewriteCond %{HTTPS} off
              RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
              

              Hope this helps,

              Tom

              fg34sXR.png

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

                PS I will run a crawl to check

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

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • BlueprintMarketing
                    BlueprintMarketing @Caffeine_Marketing last edited by

                    I am happy I could be of help please let me know if there's anything else I can be of assistance with?

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Google Search Console indexes website for www but images for non www.
                      DonnaDuncan
                      DonnaDuncan
                      1
                      4
                      79

                    • Should I redirect my HTTP to my HTTPS ?
                      Kepass
                      Kepass
                      0
                      3
                      66

                    • I've submitted a disavow file in my www version account, should I submit one in my non-www version account as well?
                      MonicaOConnor
                      MonicaOConnor
                      0
                      3
                      108

                    • URL Redirect: http://www.example.net/ vs. http://www.example.net
                      dotfly
                      dotfly
                      0
                      2
                      705

                    • Redirecting non-www pages to www ones
                      bilalyaqoob
                      bilalyaqoob
                      0
                      8
                      798

                    • Www. & Non-www versions problem
                      SanketPatel
                      SanketPatel
                      0
                      5
                      201

                    • Duplicate Content http://www.website.com and http://website.com
                      KeriMorgret
                      KeriMorgret
                      0
                      6
                      683

                    • How to redirect www vs. non-www in IIS
                      AlanMosley
                      AlanMosley
                      0
                      5
                      2.2k

                    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