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. Temporary Redirects on Magento

    Temporary Redirects on Magento

    Intermediate & Advanced SEO
    9 3 4.8k
    • 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.
    • bradkrussell
      bradkrussell last edited by

      I've recently taken over a client who uses the Magento platform and there was definitely a duplicate issue with his homepage. It redirected www to non www, however the canonical tag was setup wrong and pointing to the www version.

      When I looked at OSE for both versions the non www has only 7 linking domains and a page authority of 32. The www version has 24 linking domains and page authority of 39. As the domain is fairly new, I decided to redirect the non www to www and keep the canonical the same. (I changed the internal linking structure etc).

      When I run both URLs through this tool: http://www.ragepank.com/redirect-... it's returning a whole bunch of 302, rather than 301 redirects. What's the deal with that? Is that a Magento setting that I can fix or something a little harder?

      I'm not sure if it's proper etiquette to post the URL of a client, so if that would help and is OK, please let me know.

      Thanks

      1 Reply Last reply Reply Quote 1
      • riplash
        riplash last edited by

        Hey Brad.. firstly, posting client URLs is fine as far as SEOmoz Q&A is concerned, however, it's entirely up to you in terms of client privacy.

        Magento has a setting in the back-end for solving www/non-www canonicalisation (System > Configuration > Web > URL options). You'll see a setting for redirect type ("Auto-redirect to Base URL"), and obviously you'll want to ensure it's set to 301 rather than 302.

        bradkrussell james.rose 2 Replies Last reply Reply Quote 4
        • bradkrussell
          bradkrussell @riplash last edited by

          Hi Neil,

          Thanks for the superfast answer, appreciate it.

          OK I switched that option from Yes to No. This fixed the temporary redirect problem. However, now both the www and non www versions are returning a 200 response (see http://www.ragepank.com/redirect-check/).

          Is this an easy fix in Magento? I know in other systems such as Volusion we don't have access to htaccess. I'm guessing I can't do anything about this and I just have to worry about setting up the correct canonical?

          Thanks

          riplash bradkrussell 5 Replies Last reply Reply Quote 0
          • riplash
            riplash @bradkrussell last edited by

            You should have three options in that dropdown.. No, Yes (302 Found), and Yes (301 Moved Permanently). 301 should be the third option on the list.

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

              Haha I only have two options (Yes or No):

              | <label for="web_url_redirect_to_base">Redirect to Base URL if requested URL doesn't match it</label> | I.e. redirect from http://example.com/store/ to http://www.example.com/store/ |

              1 Reply Last reply Reply Quote 0
              • riplash
                riplash @bradkrussell last edited by

                Hey Brad.. that is strange. I guess the next logical question would be which version of Magento is the site running?

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

                  Hi Neil,

                  1.5.1.0.

                  Do you have much  experience in rewriting htaccess files for Magento? I assume this article pretty much sums it up?

                  http://www.crearegroup-ecommerce.co.uk/blog/e-commerce-seo/htaccess-rewrites-for-magento-shops.php

                  Cheers

                  1 Reply Last reply Reply Quote 0
                  • riplash
                    riplash @bradkrussell last edited by

                    Wouldn't call myself an expert by any stretch, however, I've have set up and still run a few Magento stores.

                    The reason I asked which version your site is running, is because I believe they rolled out the 301 option in version 1.4.2.0 (based on the release notes I checked). Definitely strange you don't see it when using version 1.5.1.0.

                    You can solve it instead, as you rightly point out, using a rewrite rule in .htaccess, like the second extra rule from the Creare article:-

                    RewriteCond %{http_host} ^yourdomain.co.uk [NC] RewriteRule ^(.*)$ http://www.yourdomain.co.uk/$1 [R=301,NC]

                    I don't usually find I need this, because Magento solves the www issue with that 301 dropdown menu option which is missing for you.

                    I don't generally need the first extra rule from that article, either:-

                    RewriteCond %{THE_REQUEST} ^./index.php RewriteRule ^(.)index.php$ http://www.yourdomain.co.uk/$1 [R=301,L]

                    When I switch on Web Server Rewrites in the Magento backend, and correct the Magento root (if necessary) in .htaccess, as described in that article, the removal of index.php from URLs is usually solved. If you do still have the index.php problem, however, you could solve it in .htaccess too.

                    I'm definitely not an apache/mod_rewrite expert so I can't vouch for the syntax necessarily, however it certainly looks correct.

                    If I were you (or your client), I'd also want to get to the bottom of why I don't see that 301 option in Magento, as it could be symptomatic of an incomplete upgrade in the past. It could of course, be something else obvious which I'm missing - definitely worthy of further investigation though.

                    1 Reply Last reply Reply Quote 0
                    • james.rose
                      james.rose @riplash last edited by

                      Been looking for this for ages.

                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Images are not indexing as they are in temporary ads and when the ads expired we redirect the ad image to the parent category
                        0
                        1
                        27

                      • Looking for SEO Help- Magento Temporary Redirects
                        7SidedCube
                        7SidedCube
                        0
                        8
                        559

                      • What is true impact of permanent magento redirects?
                        evolvingSEO
                        evolvingSEO
                        0
                        4
                        189

                      • 301 redirect to a temporary URL
                        AlanMosley
                        AlanMosley
                        0
                        4
                        211

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

                      • 'Select your country' page leading to high Temporary Redirects
                        Bio-RadAbs
                        Bio-RadAbs
                        0
                        3
                        312

                      • Redirect a temporary IP
                        Aran_Smithson
                        Aran_Smithson
                        0
                        6
                        351

                      • Have a problem with our home page. Is temporary 301 redirect an option?
                        firstconversion
                        firstconversion
                        0
                        6
                        584

                      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