undefined
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.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    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

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    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
  • 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. 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?

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.

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
3
7
2.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Caffeine_Marketing
    Caffeine_Marketing Subscriber last edited by Sep 23, 2019, 10:52 AM

    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
    • BlueprintMarketing
      BlueprintMarketing @Caffeine_Marketing last edited by Dec 9, 2019, 6:00 PM Dec 9, 2019, 6:00 PM

      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
      • topic:timeago_earlier,2 months
      • BlueprintMarketing
        BlueprintMarketing @Caffeine_Marketing last edited by Sep 30, 2019, 1:20 AM Sep 30, 2019, 1:20 AM

        PS I will run a crawl to check

        1 Reply Last reply Reply Quote 0
        • BlueprintMarketing
          BlueprintMarketing @Caffeine_Marketing last edited by Sep 30, 2019, 1:24 AM Sep 30, 2019, 1:18 AM

          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
          • Caffeine_Marketing
            Caffeine_Marketing Subscriber last edited by Sep 26, 2019, 8:17 AM Sep 26, 2019, 8:17 AM

            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 Dec 9, 2019, 6:00 PM Reply Quote 0
            • BlueprintMarketing
              BlueprintMarketing last edited by Sep 23, 2019, 6:56 PM Sep 23, 2019, 6:56 PM

              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
              • Xiano
                Xiano Subscriber last edited by Sep 23, 2019, 12:25 PM Sep 23, 2019, 12:25 PM

                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
                • 1 / 1
                1 out of 7
                • First post
                  1/7
                  Last post

                Got a burning SEO question?

                Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                Start my free trial


                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

                • Daaveey

                  Should I redirect a domain we control but which has been labeled 'toxic' or just shut it down?

                  Hi Mozzers: We recently launched a site for a client which involved bringing in and redirecting content which formerly had been hosted on different domains. One of these domains still existed and we have yet to bring over the content from it. It has also been flagged as a suspicious/toxic backlink source to our new domain. Would I be wise to redirect this old domain or should I just shut it down? None of the pages seem to have particular equity as link sources. Part of me is asking myself 'Why would we redirect a domain deemed toxic, why not just shut it down.' Thanks in advance, dave

                  Intermediate & Advanced SEO | Feb 28, 2018, 12:03 PM | Daaveey
                  0
                • binhlai

                  If my website do not have a robot.txt file, does it hurt my website ranking?

                  After a site audit, I find out that my website don't have a robot.txt. Does it hurt my website rankings? One more thing, when I type mywebsite.com/robot.txt, it automatically redirect to the homepage. Please help!

                  Intermediate & Advanced SEO | Apr 23, 2024, 9:17 AM | binhlai
                  0
                • HashtagHustler

                  Moving half my website to a new website: 301?

                  Good Morning! We currently have two websites which are driving all of our traffic. Our end goal is to combine the two and fold them into each other. Can I redirect the duplicate content from one domain to our main domain even though the URL's are different. Ill give an example below. (The domains are not the real domains). The CEO does not want to remove the other website entirely yet, but is willing to begin some sort of consolidation process. ABCaddiction.com is the main domain which covers everything from drug addiction to dual diagnosis treatment. ABCdualdiagnosis.com is our secondary website which covers everything as well. Can I redirect the entire drug addiction half of the website to ABCaddiction.com? With the eventual goal of moving everything together.

                  Intermediate & Advanced SEO | Aug 22, 2014, 4:49 AM | HashtagHustler
                  0
                • mycity4kids

                  How important is the optional <priority>tag in an XML sitemap of your website? Can this help search engines understand the hierarchy of a website?</priority>

                  Can the <priority>tag be used to tell search engines the hierarchy of a site or should it be used to let search engines know which priority to we want pages to be indexed in?</priority>

                  Intermediate & Advanced SEO | Mar 11, 2014, 11:08 AM | mycity4kids
                  0
                • rexjoec

                  Effects of having both http and https on my website

                  You are able to view our website as either http and https on all pages. For example: You can type "http://mywebsite.com/index.html" and the site will remain as http: as you navigate the site. You can also type "https://mywebsite.com/index.html" and the site will remain as https: as you navigate the site. My question is....if you can view the entire site using either http or https, is this being seen as duplicate content/pages? Does the same hold true with "www.mywebsite.com" and "mywebsite.com"? Thanks!

                  Intermediate & Advanced SEO | Jun 18, 2013, 11:21 AM | rexjoec
                  1
                • Locals

                  Primary Domain or Redirect?

                  We are starting a new travel guide for a resort town. I have bought an expired domain with decent related links and PR (which seems to have survived the transfer (4 months ago). Beofre we launch the new site I am trying to decide if we should use this expired domain as the primary URL for the new site or just do a permanent redirect and buy a new domain that better matches the theme of the site. I am obviously concerned with starting from scatch with a new domain. I am confident we can build some good rellevant links in a short time but this space is very competetive. Any input would be greatly appreciated.

                  Intermediate & Advanced SEO | May 29, 2013, 2:19 PM | Locals
                  0
                • djingel1

                  Any way to find which domains are 301 redirected to competitors' websites?

                  By looking at the work from an SEO collegue it became clear that his weak linkbuilding graph probably is not the cause for his good rankings for a pretty competitive keyword. (also no social mentions where found) I was wondering what it could be, site structure and other on page optimization factors seems to be ok and I don't think there will be exceptionally good or bad user behavior... Finally I looked at the competitors and found that they have more links, better content en better design, so I got a little stuck. The only reason I can think of is that he is doing 301 redirects (or is rel=canonical tags). Is there a way to trace these redirects back to the source in order to include this important variable in your competitor research? thnx

                  Intermediate & Advanced SEO | Oct 30, 2011, 3:52 AM | djingel1
                  0
                • djo-283669

                  Concerns about duplicate content issues with australian and us version of website

                  My company has an ecommerce website that's been online for about 5 years.  The url is www.betterbraces.com.  We're getting ready to launch an australian version of the website and the url will be www.betterbraces.com.au. The australian website will have the same look as the US website and will contain about 200 of the same products that are featured on the US website.  The only major difference between the two websites is the price that is charged for the products.  The australian website will be hosted on the same server as the US website. To ensure Australians don't purchase from the US site we are going to have a geo redirect in place that sends anyone with a AU ip address to the australian website. I am concerned that the australian website is going to have duplicate content issues.  However, I'm not sure if the fact that the domains are so similar coupled with the redirect will help the search engines understand that these sites are related. I would appreciate any recommendations on how to handle this situation to ensure oue rankings in the search engines aren't penalized. Thanks in advance for your help. Alison French

                  Intermediate & Advanced SEO | Oct 17, 2011, 12:44 PM | djo-283669
                  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
                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.