Please note – I have found a better way of preventing this SEO duplicate content issue, which I have documented here: Add meta robots noindex to Magento review pages

 

If in your Magento product pages you’re pulling through review content, then you’ll want to ensure that the associated product reviews page isn’t available to search engines to eliminate the risk of duplicate content holding your website back in the search results pages.

After searching online for a number of solutions to this issue, including creating a custom module that extends the review/product and rewrite listAction method, we found a simple redirect rule to the long ID-based URL page works well. If you have canonical URLs enabled for single product pages, then search engines will be forgiving of this method as the page rendered at the non-search friendly URL also includes this canonical tag.

This code will work on any Magento install where the catalog product page matches this: /catalog/product/view/id/000 (when SEO friendly URLs are disabled).

To implement this redirect, paste this code into your .htaccess file in the server root and visit a review page to confirm that it is working correctly.

<IfModule mod_rewrite.c>

    RewriteRule ^review/product/list/id/(.*)$ /catalog/product/view/id/$1 [L,R]

</IfModule>

Please let me know whether this works for you in the comments below.

Aaron Dicks

Managing Director

Managing Director of Impression. Search engine optimisation, paid media and web analytics consultant. Also web developer and digital all-rounder. @aarondicks

9 thoughts on “How to redirect Magento review pages to product pages

  1. AvatarPaul Mark Quinn says:

    This is a handy technique. I am going to do it on one of my sites I’m working on.
    Keep up the good work.

    1. aarondicksaarondicks says:

      Thanks Paul!

  2. Avatarroshan lal says:

    Hi Paul,

    Why you are not using robots.txt to disallow these urls.

    Thanks,
    Roshan Lal

    1. aarondicksaarondicks says:

      Hi Roshan.
      I’ve actually found a better way to achieve the same results we are looking for. I’ll update the article today, so please check back.
      Thank you
      Aaron

      1. Avatarroshan lal says:

        Hi Aaron,

        Oh great!! Please keep me updated.

        Thanks,
        Roshan

        1. aarondicksaarondicks says:

          This method allows you to add meta noindex to the pages without worrying about removing or redirecting them. It’s a better solution in my opinion. If you don’t want customers on these pages, then remove links to them by editing the .phtml files in your /review/ folder of your theme.

          Hope this helps!

          https://www.impression.co.uk/blog/1253/meta-robots-noindex-magento-review-pages/

          1. Avatarroshan lal says:

            Hi Aaron,

            Nice! Thanks for this method.

            Thanks,
            Roshan

  3. Pingback: Add meta robots noindex to Magento review pages - Impression
  4. AvatarFacebook User says:

    Hi it didn’t work for me Magento CE 1.8.1 , but i found solution which is:

    RedirectMatch 301 /review/product/list/id/(.*) /catalog/product/view/id/$1

Leave a Reply

Your email address will not be published. Required fields are marked *