title: Removing /product-category/ and /shop/ from URL in WooCommerce
body: <p>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</p>
  
  <pre><code>domain.com/product-category/category-name
  domain.com/shop/category-name/product-name
  </code></pre>
  
  <p>For SEO purposes would like to change it to</p>
  
  <pre><code>domain.com/category-name
  domain.com/category-name/product-name
  </code></pre>
  
  <p>but when I delete the product category base in Wordpress permalink settings, it just reappears. Then I found <a href="https://docs.woocommerce.com/document/removing-product-product-category-or-shop-from-the-urls/" rel="nofollow noreferrer">this page</a> stating that I shouldn't change it at all. Is that true? Am I wrong in wanting to alter the URLs?</p>
  
  <p>If it's fine to change them, how can I do it?</p>