• majorAlexa

        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.

          Let your business shine with Listings AI
          Moz Local

          Let your business shine with Listings AI

          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
        • 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. 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
        2396
        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.
        • Caffeine_Marketing
          Caffeine_Marketing Subscriber 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
          • 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
            • BlueprintMarketing
              BlueprintMarketing @Caffeine_Marketing last edited by

              PS I will run a crawl to check

              1 Reply 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
                • Caffeine_Marketing
                  Caffeine_Marketing Subscriber 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 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
                    • Xiano
                      Xiano Subscriber 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
                      • 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

                      • SeoBlogs61

                        Moving site from www to non www and also hosting to vps what will be the effect?

                        shared hosting to vps www to non www

                        Hi SEO gurus,
                        I am trying to move my site from shared hosting to VPS hosting and also moving from www to non www version.
                        What is the best possible way to avoid any issue and without losing the backlinks.
                        Is it good or bad to do? URL: https://buylikesservices.com/

                        Intermediate & Advanced SEO | | SeoBlogs61
                        0
                      • amag

                        Would You Redirect a Page if the Parent Page was Redirected?

                        Hi everyone! Let's use this as an example URL: https://www.example.com/marvel/avengers/hulk/ We have done a 301 redirect for the "Avengers" page to another page on the site. Sibling pages of the "Hulk" page live off "marvel" now (ex: /marvel/thor/ and /marvel/iron-man/). Is there any benefit in doing a 301 for the "Hulk" page to live at /marvel/hulk/ like it's sibling pages? Is there any harm long-term in leaving the "Hulk" page under a permanently redirected page? Thank you! Matt

                        Intermediate & Advanced SEO | | amag
                        0
                      • NeatIT

                        6 .htaccess Rewrites: Remove index.html, Remove .html, Force non-www, Force Trailing Slash

                        i've to give some information about my website Environment 1. i have static webpage in the root. 2. Wordpress installed in sub-dictionary www.domain.com/blog/ 3. I have two .htaccess , one in the root and one in the wordpress
                        folder. i want to www to non on all URLs Remove index.html from url Remove all .html extension / Re-direct 301 to url
                        without .html extension Add trailing slash to the static webpages / Re-direct 301 from non-trailing slash Force trailing slash to the Wordpress Webpages / Re-direct 301 from non-trailing slash Some examples domain.tld/index.html >> domain.tld/ domain.tld/file.html >> domain.tld/file/ domain.tld/file.html/ >> domain.tld/file/ domain.tld/wordpress/post-name >> domain.tld/wordpress/post-name/ My code in ROOT htaccess is <ifmodule mod_rewrite.c="">Options +FollowSymLinks -MultiViews RewriteEngine On
                        RewriteBase / #removing trailing slash
                        RewriteCond %{REQUEST_FILENAME} !-d
                        RewriteRule ^(.*)/$ $1 [R=301,L] #www to non
                        RewriteCond %{HTTP_HOST} ^www.(([a-z0-9_]+.)?domain.com)$ [NC]
                        RewriteRule .? http://%1%{REQUEST_URI} [R=301,L] #html
                        RewriteCond %{REQUEST_FILENAME} !-f
                        RewriteCond %{REQUEST_FILENAME} !-d
                        RewriteRule ^([^.]+)$ $1.html [NC,L] #index redirect
                        RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.html\ HTTP/
                        RewriteRule ^index.html$ http://domain.com/ [R=301,L]
                        RewriteCond %{THE_REQUEST} .html
                        RewriteRule ^(.*).html$ /$1 [R=301,L]</ifmodule> The above code do 1. redirect www to non-www
                        2. Remove trailing slash at the end (if exists)
                        3. Remove index.html
                        4. Remove all .html
                        5. Redirect 301 to filename but doesn't add trailing slash at the end

                        Intermediate & Advanced SEO | | NeatIT
                        0
                      • EcommerceSite

                        How do I add https version of site to Bing webmaster tools?

                        I could add my site to Google Webmaster tools with no problems, but when I try to add it in Bing webmaster tools it just redirects me to what I already have. Everything is staying the same but the switch from http to https. Anyone else experienced this? This is what I just received back from Bing and it doesn't seem right- I understand that you switched to the https version of your site and you're now trying to use the Site Move tool. However, in order to do this, you must verify the https version of your site first. You cannot do this because it just redirects you to the dashboard. We thank you for reporting this to us. We've investigated on this matter and can see that you're already put a redirect from the http to the https version of your site. We also checked the /BingSiteAuth.xml file and this also redirects to the https version. At this point, we suggest that you remove the current website (http version) that is verified through Bing Webmaster Tool and add your https domain. When done, use the Site Move tool. Thoughts?

                        Intermediate & Advanced SEO | | EcommerceSite
                        1
                      • DA2013

                        How do you 301 redirect URLs with a hashbang (#!) format? We just lost a ton of pagerank because we thought javascript redirect was the only way! But other sites have been able to do this – examples and details inside

                        Hi Moz, Here's more info on our problem, and thanks for reading! We’re trying to Create 301 redirects for 44 pages on site.com. We’re having trouble 301 redirecting these pages, possibly because they are AJAX and have hashbangs in the URLs. These are locations pages. The old locations URLs are in the following format: www.site.com/locations/#!new-york and the new URLs that we want to redirect to are in this format: www.site.com/locations/new-york We have not been able to create these redirects using Yoast WordPress SEO plugin v.1.5.3.2. The CMS is WordPress version 3.9.1 The reason we want to 301 redirect these pages is because we have created new pages to replace them, and we want to pass pagerank from the old pages to the new. A 301 redirect is the ideal way to pass pagerank. Examples of pages that are able to 301 redirect hashbang URLs include http://www.sherrilltree.com/Saddles#!Saddles and https://twitter.com/#!RobOusbey.

                        Intermediate & Advanced SEO | | DA2013
                        0
                      • jasondexter

                        Multiple 301 redirects for a HTTPS URL. Good or bad?

                        I'm working on an ecommerce website that has a few snags and issues with it's coding. They're using https, and when you access the website through domain.com, theres a 301 redirect to http://www.domain.com and then this, in turn, redirected to https://www.domain.com. Would this have a deterimental effect or is that considered the best way to do it. Have the website redirect to http and then all http access is redirected to the https URL? Thanks

                        Intermediate & Advanced SEO | | jasondexter
                        0
                      • Mark_Ch

                        How to structure articles on a website.

                        Hi All, Key to a successful website is quality content - so the Gods of Google tell me. Embrace your audience with quality feature rich articles on your products or services, hints and tips, how to, etc. So you build your article page with all the correct criteria; Long Tail Keyword or phrases hitting the URL, heading, 1st sentance, etc. My question is this
                        Let's say you have 30 articles, where would you place the 30 articles for SEO purposes and user experiences. My thought are:
                        1] on the home page create a column with a clear heading "Useful articles" and populate the column with links to all 30 articles.
                        or
                        2] throughout your website create link references to the articles as part of natural information flow.
                        or
                        3] Create a banner or impact logo on the all pages to entice your audience to click and land on dedicated "articles page" Thanks Mark

                        Intermediate & Advanced SEO | | Mark_Ch
                        0
                      • bloomnation

                        DNS or 301 Website Redirect

                        We are running a marketplace site, so we have thousands of vendors selling their products on our site. Each vendor has a Profile page and we are soon to launch a premium store-front that is white label. Many of these vendors will want to point a custom url to their premium store-front (which is a sub domain of the marketplace) and we are trying to get an understanding of how we should instruct them to point their url in a way that will give the main marketplace site the seo juice. We also want to understand what will show up in the address bar.  Will it be their url or our sub domain? Will any of the marketplace seo juice boost their url local listing status?

                        Intermediate & Advanced SEO | | bloomnation
                        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.