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. Problems with 301 Redirects for non-www pages

    Problems with 301 Redirects for non-www pages

    Intermediate & Advanced SEO
    10 2 1.2k
    • 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.
    • Melia
      Melia last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • cyberlicious
        cyberlicious last edited by

        From my experiences, I've told all my webmaster tools that www is my default.  I do not use 301 redirects.  What you have to do is register both URLs under your Google Webmaster Tools.  When they see you as the owner of both, you can now change the setting:

        1.) Login to Google Webmaster Tools.

        2.) Add site (both the www and non-www)

        3.) Drop verification file on root directory for both.

        4.) Once both are verified, click on your site with www.

        5.) Then under Site Configuration>Settings select your preferred domain.

        Viola!!!

        Hope this helps!!!

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

          Oh, set both the www and non-www to your preferred www setting.  Then you can delete your non-www from the "Add Site" list in Webmaster Tools, and only your www will exist to eliminate confusion when using the tool.  This is just preference.  Doesn't matter if both are on your list.  They are now the same...

          Melia 1 Reply Last reply Reply Quote 0
          • Melia
            Melia @cyberlicious last edited by

            I know this option but user experience, I would like to redirect this page. Do you know how to redirect the page?

            cyberlicious Melia 6 Replies Last reply Reply Quote 0
            • cyberlicious
              cyberlicious @Melia last edited by

              Duh, server side...

              Try this: http://www.seomoz.org/learn-seo/redirection

              1 Reply Last reply Reply Quote -1
              • Melia
                Melia @Melia last edited by

                its more complicated than that, i alraeady added the code below, but there is no header response since there no deault page. I need someone to help me with this issue.

                RewriteCond %{HTTP_HOST} ^seomoz.org [NC]
                RewriteRule (.*) http://www.seomoz.org/$1 [L,R=301]

                1 Reply Last reply Reply Quote 0
                • cyberlicious
                  cyberlicious @Melia last edited by

                  What server?  Apache, Microsoft IIS, etc?

                  This covers both: http://www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect/#.TyL01qVSSRg

                  1 Reply Last reply Reply Quote 0
                  • Melia
                    Melia @Melia last edited by

                    The sites are running under a Linux environment(Debian) with the Apache2 server.

                    1 Reply Last reply Reply Quote 0
                    • cyberlicious
                      cyberlicious @Melia last edited by

                      On my end, I'm seeing a redirection loop for  www.meliacozumel.com.  This error:

                      Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

                      Not that it's not loading. It's in a infinite loop.  Could something probably be cached server side that needs to be removed to kill the loop?

                      1 Reply Last reply Reply Quote 0
                      • cyberlicious
                        cyberlicious @Melia last edited by

                        Do you have this for your first example:

                        RewriteEngine On

                        RewriteCond %{HTTP_HOST} ^meliacozumel.com

                        RewriteRule (.*) http://www.meliacozumel.com/$1 [R=301,L]

                        Also make sure you have the Apache Rewrite Module turned on.  Check the httpd.conf file, and take the comments off LoadModule rewrite_module modules/mod_rewrite.so in order for it to be active.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • 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?
                          BlueprintMarketing
                          BlueprintMarketing
                          0
                          8
                          437

                        • Would You Redirect a Page if the Parent Page was Redirected?
                          Nozzle
                          Nozzle
                          0
                          4
                          92

                        • Www vs Non-www version - should we still redirect?
                          Martijn_Scheijbeler
                          Martijn_Scheijbeler
                          0
                          2
                          71

                        • 301 Redirect to Home Page or Sub-Page?
                          zeehj
                          zeehj
                          0
                          2
                          149

                        • 301 redirect hops from non-https and www
                          ThompsonPaul
                          ThompsonPaul
                          0
                          3
                          335

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

                        • Www. & Non-www versions problem
                          SanketPatel
                          SanketPatel
                          0
                          5
                          201

                        • How to redirect www vs. non-www in IIS
                          AlanMosley
                          AlanMosley
                          0
                          5
                          2.2k

                        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