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. Best practice to 301 NON-WWW pages?

    Best practice to 301 NON-WWW pages?

    Intermediate & Advanced SEO
    4 4 91
    • 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.
    • bridhard8
      bridhard8 last edited by

      Hi Guys,

      Have a site which has 302 redirects installed for pages like:

      https://domain.com.au/ to https://www.domain.com.au/ (302 redirect)

      Is it worth changing the redirect to a 301? This is a large site, like 10,000 pages.

      Also does anyone know how can this be done via Magento?

      Cheers

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

        Why are you using 302's? Is this temporary? If permanent, use 301's.

        Just tweak the .htaccess file and push non-www to www and change Magneto's base url in system => configuration.

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

          Agree with Kevin's question, but 99% of the time you want to use a 301.

          302 is causing google to index the new page without dropping the old one. This means that now google is seeing 2 pages with identical content.

          While this is not an issue per se, it may dilute a lot your seo value as it's split across two pages. Moreover, sometimes Google may decide to serve the old page and not the new one as it may have backlinks pointing to it.

          I strongly suggest you update your redirect rule to 301. I don't know specifically about Magento but there are many discussions out there. Here the code you may include in your .HTACCESS file.
          *NOTE: do not touch the htaccess file if you don't know what you're doing or you can break the whole site 😘

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

          you may want to change the rewrite rule to https://www. if your site is secure.

          Guest 1 Reply Last reply Reply Quote 0
          • Guest
            Guest @mememax last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Is it best practice to have a canonical tags on all pages
              DonnaDuncan
              DonnaDuncan
              0
              5
              2.6k

            • CNAME record for WWW to Non-WWW Vs. 301?
              0
              2
              430

            • I have an authority site with 90K visits per month. Now I have to change from non www to www. Will incur in any SEO issues while doing that? Could you please advice me on the best steps to follow to do this? Thank you very much!
              ThomasHarvey
              ThomasHarvey
              0
              8
              192

            • An affiliate website uses datafeeds and around 65.000 products are deleted in the new feeds. What are the best practises to do with the product pages? 404 ALL pages, 301 Redirect to the upper catagory?
              Everett
              Everett
              0
              5
              135

            • Redirecting non-www pages to www ones
              bilalyaqoob
              bilalyaqoob
              0
              8
              798

            • Is This 301 Use Best Practice??
              KaneJamison
              KaneJamison
              0
              5
              539

            • There's a website I'm working with that has a .php extension. All the pages do. What's the best practice to remove the .php extension across all pages?
              digisavvy
              digisavvy
              0
              5
              445

            • Best practice to change the URL of all my site pages
              RyanKent
              RyanKent
              1
              4
              698

            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