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. On-Page / Site Optimization
    4. Www no longer redirects

    Www no longer redirects

    On-Page / Site Optimization
    5 4 116
    • 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.
    • MrPenguin
      MrPenguin last edited by

      Hi there,

      A while back I dropped the www from my domain.

      Everything redirected ok and I could still access my site using www and it would simply redirect to http://mysite

      This no longer seems to be occurring. I don't think I have changed anything?

      I don't believe I had anything in my htaccess however I am looking for some assistance in doing so. I've done a bit of reading but am not 100% confident!

      If anyone is interested, the url is http://cdkeyprices.com

      Thanks

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

        Have you tried:

        • deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).
        1 Reply Last reply Reply Quote 0
        • OlegKorneitchouk
          OlegKorneitchouk last edited by

          Try adding this to .htaccess and see if it works:

          RewriteEngine On
          RewriteCond %{HTTP_HOST} !^cdkeyprices\.com
          RewriteRule (.*) http://cdkeyprices.com/$1 [R=301,L]
          
          1 Reply Last reply Reply Quote 2
          • WesleySmits
            WesleySmits last edited by

            Mark, i tried your website and the redirect is working fine. If any of the answers below was helpful to you you should mark it as the right answer to close this question.

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

              Thanks Wesley, all seems fine now. The redirect worked fine it seems.

              Thanks again

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • My home page URL http://seadwellers.com/ redirects to http://www.seadwellers.com/. Is this a problem?
                TheeDigital
                TheeDigital
                0
                3
                100

              • Www and non-www
                Bryan_Loconto
                Bryan_Loconto
                0
                5
                328

              • Www to non www redirect
                matbennett
                matbennett
                0
                8
                194

              • Is it redundant to include a redirect to my canonical domain (www) in my .htaccess file since I already have the correct rel="canonical" in my header?
                jesse-landry
                jesse-landry
                0
                4
                224

              • Losing Page Rank after 301 redirect from http to www
                yeagerd
                yeagerd
                0
                5
                335

              • The best way to redirect to www
                Cyrus-Shepard
                Cyrus-Shepard
                0
                7
                336

              • How do I do a 301 Redirect in IIS 7 from http://www.freightmonster.com/index.html to http://freightmonster.com/index.html when I don't have a physical page to redirect?
                EricaMcGillivray
                EricaMcGillivray
                0
                4
                1.0k

              • Necessary to redirect non-www to www?
                RavenshoeGroup
                RavenshoeGroup
                0
                4
                2.1k

              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