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

            • Best practice for deindexing large quantities of pages
              LoganRay
              LoganRay
              0
              4
              311

            • Is it possible to direct HTTP www 301 to HTTPS non www?
              Whebb
              Whebb
              0
              5
              656

            • Our client's web property recently switched over to secure pages (https) however there non secure pages (http) are still being indexed in Google. Should we request in GWMT to have the non secure pages deindexed?
              N1ghteyes
              N1ghteyes
              0
              3
              128

            • Best practice to prevent pages from being indexed?
              Andy-Halliday
              Andy-Halliday
              0
              2
              64

            • Duplicate Content www vs. non-www and best practices
              ThompsonPaul
              ThompsonPaul
              0
              5
              6.0k

            • End of March we migrated our site over to HubSpot. We went from page 3 on Google to non existent. Still found on page 2 of Yahoo and Bing. Beyond frustrated...HELP PLEASE "www.vortexpartswashers.com"
              Jben
              Jben
              0
              4
              484

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

            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