问题
I'm building an ecommerce store with WooCommerce, and I would like to change how my URLs are created. At the moment the structure is
domain.com/product-category/category-name
domain.com/shop/category-name/product-name
For SEO purposes would like to change it to
domain.com/category-name
domain.com/category-name/product-name
but when I delete the product category base in Wordpress permalink settings, it just reappears. Then I found this page stating that I shouldn't change it at all. Is that true? Am I wrong in wanting to alter the URLs?
If it's fine to change them, how can I do it?
回答1:
I think this is helps you.
Removing those URL is definitely one of the major improvements in search engine optimization for any online store because then search engines will not take into account the unnecessary words in the link. So, the search for your products will become more precise. I also encountered this problem and tested most of the plugins that were available on the WordPress website. Now I definitely can recommend Permalink Manager by Premmerce because it's free, very user friendly and simple plugin.
You can download it in WordPress site here: https://wordpress.org/plugins/woo-permalink-manager/
Thanks.
来源:https://stackoverflow.com/questions/59752543/removing-product-category-and-shop-from-url-in-woocommerce