• Hi,

    I have moved a site from Magento to WooCommerce and I can’t get the redirects for categories to work. Could a setting in WC be overwriting them?

    I’m using redirect 301 /product-type/accessories https://newsite.com/product-category/accessories/, but instead it redirects to https://newsite.com/products/accessories/.

    My Shop Page is set to /products/ and the Product category base in permalinks is set to /product-category/.

    Redirects work for everything else – standard pages, checkout, individual products.

Viewing 1 replies (of 1 total)
  • Thread Starter excentricjester

    (@excentricjester)

    I found a solution using the below, but it would be good to know why the normal redirect didn’t work for categories.

    For anyone looking to implement the same it’s important to list any sub-directories first.

    <IfModule mod_rewrite.c>
        Options +FollowSymLinks
        RewriteEngine On
        RewriteRule ^product-type/accessories https://newsite.com/product-category/accessories/child-category [R=301,L]
        RewriteRule ^product-type/accessories https://newsite.com/product-category/accessories/ [R=301,L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • The topic ‘Categories 301 redirect not working’ is closed to new replies.