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. Technical SEO Issues
    4. How to resolve warning of pages with redirect chain when its your http:// to https://www.

    How to resolve warning of pages with redirect chain when its your http:// to https://www.

    Technical SEO Issues
    3 2 186
    • 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.
    • VelocityWebsites
      VelocityWebsites last edited by

      how do I write a 301 redirect in the htaccess file so that http:// goes straight to https://www. Moz replyEli profileHey there!Thanks for reaching out to us!

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

        Hi Rod,

        From reading the title, are you saying you have tried to do this and it has caused redirect chain issues?

        I don't suppose you're using Wordpress and/or a CDN? It's a common error I have seen with that CMS due to how Wordpress natively redirects some parts of the URL.

        Anyway, here are a few stackoverflows with suitable code snippets:

        https://serverfault.com/questions/523199/redirect-all-http-and-https-non-www-urls-to-https-www-example-com-via-htaccess

        https://stackoverflow.com/questions/13977851/htaccess-redirect-to-https-www

        Note: You will need a wildcard SSL certificate or to generate two which cover non-www and www to ensure the directs work properly.

        Good luck,

        Nick

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

          Thanks for your response Nick, Great answer

          Yes, I am using WordPress Cloudflare.  I will get on to this soon and let you know how I get on.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Http:// vs Https:// in Og:URL
            ThompsonPaul
            ThompsonPaul
            0
            6
            637

          • From: http://www. to https://
            Tymen
            Tymen
            1
            4
            121

          • Http:// to https:// 301 or 302 redirect
            Kingof5
            Kingof5
            1
            7
            284

          • Google showing https:// page in search results but directing to http:// page
            JaneCopland
            JaneCopland
            0
            4
            218

          • Http:// vs http://www.
            fun52dig
            fun52dig
            0
            8
            474

          • In order to improve my google rank, I recently changed my url from http://www.helpwithassignment.com/nursing-assignment-help to http://www.helpwithassignment.com/Assignment-Help/nursing-assignment-help
            RichaS
            RichaS
            1
            14
            1.1k

          • Follow up from http://www.seomoz.org/qa/discuss/52837/google-analytics
            KeriMorgret
            KeriMorgret
            0
            8
            1.1k

          • New website branding, differences between http://www and http://
            PathInteractive
            PathInteractive
            1
            10
            1.3k

          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