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. This redirect has me racking my brain

    This redirect has me racking my brain

    Intermediate & Advanced SEO
    4 2 144
    • 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.
    • LesleyPaone
      LesleyPaone last edited by

      I cannot tell if something is wrong with my domain redirect or if it is some default behavior by Chrome. I made a short video, I used Moz first since they are using an SSL certificate too. But the gist is immediately when I type in the address it flashes www, then redirects to the non www. domain. Because of how its happening so quick I cannot tell if this is just default Chrome behavior or if I have the DNS set up incorrectly. Here is the video. http://screencast.com/t/UDHmdTCbQv

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

        Howdy Lesley!

        It looks like the www is 301 redirecting correctly to non-www, but that is happened in Apache, looks good. The DNS record looks to be setup as a CNAME currently, I might suggest changing that to an A record (so 'www.dh42.com' point to 67.225.148.201 as well). The 301 redirect from non SSL to SSL looks good too!

        Remove that CNAME record to reduce a roundtrips. Also in Apache, make sure someone visiting 'www.dh42.com' gets redirected to the non-www and SSL version of the site ('https://dh42.com'). In the current setup, there is an extra 301 redirection that you can remove.

        Your Apache config might looks like this to achieve that:

        skip a redirection and directly go from http://www to https://(non-www)

        RewriteCond %{HTTP_HOST} www.(.*.)?dh42.com

        RewriteRule (.*) https://%1dh42.com$1 [R=301,L]

        LesleyPaone 2 Replies Last reply Reply Quote 1
        • LesleyPaone
          LesleyPaone @beammeup last edited by

          This is baffling me. This is what I have in my htaccess http://screencast.com/t/zB6UME7aCT  This is my httpd.conf for port:80 http://screencast.com/t/DXoDU5Fnt  and for port 443 http://screencast.com/t/KtB5NKvkYP  Also this is what I have in my dns file in CPanel, http://screencast.com/t/8atFbpKdM   The CNAME is still there, because when it is removed since it redirects to www first, the site breaks.

          1 Reply Last reply Reply Quote 0
          • LesleyPaone
            LesleyPaone @beammeup last edited by

            This looks like it could be a non issue, it doesn't do it in any other browsers and does not do it on other computers, which I think is strange.

            On another note I wanted to email you and ask you about something totally unrelated, is there a good email address for you? The only one I have is the support one. Or you can email me at lesley@dh42.com

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Would You Redirect a Page if the Parent Page was Redirected?
              Nozzle
              Nozzle
              0
              4
              92

            • Should I do a redirect
              0
              1
              33

            • If you do 302 redirect then change to 301 redirect do you lose all link juice?
              EricaMcGillivray
              EricaMcGillivray
              0
              3
              792

            • To redirect or not to redirect, that is the question
              CommT
              CommT
              0
              5
              126

            • To Redirect or Not
              HashtagHustler
              HashtagHustler
              0
              9
              144

            • How to redirect an url in .htaccess when "redirect 301" doesnt work
              WilliamKammer
              WilliamKammer
              0
              5
              173

            • 301 Redirect To Another 301 Redirect
              cbielich
              cbielich
              0
              5
              247

            • How to Redirect
              tylerfraser
              tylerfraser
              0
              5
              448

            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