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. Problem www/non-www domain rewrite

    Problem www/non-www domain rewrite

    Technical SEO Issues
    5 2 261
    • 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.
    • hgw57
      hgw57 last edited by

      Hello,

      I've made a site for a client about 1 year ago. The rankings are quite okay, but the home page suffers from a penalty I think.

      I found out via OSE that PageAuthority strangely is higher on the 301-ed page

      www.myanmar-rundreisen.de - PA 32
      myanmar-rundreisen.de/ - PA 33

      I don't understand what is happening here as I am using the usual htaccess 301-redirect:

      Rewrite domain.com -> www.domain.com

      RewriteCond %{HTTP_HOST} .
      RewriteCond %{HTTP_HOST} !^www.myanmar-rundreisen.de [NC]
      RewriteRule (.*) http://www.myanmar-rundreisen.de/$1 [L,R=301]

      which is working fine with other domains ...

      I tried also (last line)

      RewriteRule (.*) http://www.myanmar-rundreisen.de/$1 [L,R=301]

      So thanks to anyone who can share an idea on that ...

      Guenter

      K04xy.jpg

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

        only so?

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

        Ciao

        Maurizio

        hgw57 1 Reply Last reply Reply Quote 0
        • hgw57
          hgw57 @malecce last edited by

          Hi Maurizio

          thanks for this code version - I changed the htaccess rewrite to your version.

          htaccess does what is expected ...

          No change yet in opensiteexplorer results with that htaccess, but may be after some hours ...

          malecce hgw57 2 Replies Last reply Reply Quote 0
          • malecce
            malecce @hgw57 last edited by

            I think that's is impossible that you see change in opensiteexplorer early.

            First you must logged in webmaster tools of google e decide if you use your domain with

            www or without.

            After you must wait the the search engine understand that this is changed.

            Ciao

            Maurizio

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

              Yes. Google Webmaster Tools know about www since long ...

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • We switched the domain from www.blog.domain.com to domain.com/blog.
                Nigel_Carr
                Nigel_Carr
                0
                3
                170

              • Will this URL structure: "domain.com/s/content-title" cause problems?
                0
                2
                42

              • Expired Domain - http:// or www
                Klarke
                Klarke
                0
                3
                387

              • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
                Chris-CA
                Chris-CA
                0
                5
                456

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

              • Www to non www
                seoug_2005
                seoug_2005
                0
                9
                543

              • 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

              • Is my non-www domain working
                JetBookMike
                JetBookMike
                0
                8
                1.4k

              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