WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Redirect WP e-Commerce category URLs (3 posts)

  1. SzLegradi
    Member
    Posted 1 year ago #

    Hello,

    I am in the process of migrating a WP e-Commerce (http://getshopped.org/) shop to WooCommerce and my problem is that on the old website, the URLs looked like this:

    http://domain.com/category-name/product-name
    and WooCommerce inserts the product-category in front of the category names:
    http://domain.com/product-category/category-name/product-name

    I know I can change product-category to something else, but how can I remove it? Or is there a way to create a redirect rule in .htaccess to redirect old category URLs to the new ones?

    I guess the tricky part in it is that there can be multiple categories and they are represented the same way as a single category:
    http://domain.com/category-name/product-name
    http://domain.com/category-name/category-2/category-3/product-name

    Thanks in advance for any help!

    http://wordpress.org/extend/plugins/woocommerce/

  2. Stefan83
    Member
    Posted 1 year ago #

    I've got the same issue. Hopefully someone can help? Unless you've found a solution SzLegradi?

  3. bheadrick
    Member
    Posted 1 year ago #

    I'm not sure I get why you'd want to use
    http://domain.com/product-category/category-name/product-name
    insstead of just changing 'product-category' to 'category-name'
    is 'category-name' the name of a category that all other categories are under?

    You could use the redirection plugin to redirect a set of url's

    You could also do this with .htaccess rules, but this is a little easier to manage if you're not a wiz with regex

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic