The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Remove Product & Category from URLS in Wordpress

    Remove Product & Category from URLS in Wordpress

    Intermediate & Advanced SEO
    6 4 1.4k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • moon-boots
      moon-boots last edited by

      Does anyone have experience removing /product/ and /product-category/, etc. from URLs in wordpress? I found this link from Wordpress which explains that this shouldn't be done, but I would like some opinions of those who have tried it please.

      https://docs.woocommerce.com/document/removing-product-product-category-or-shop-from-the-urls/

      1 Reply Last reply Reply Quote 0
      • Martijn_Scheijbeler
        Martijn_Scheijbeler last edited by

        Hi,

        You should be able to just change this in the permalinks. It's good to be reminded of some of the things that you need to take care of: redirects, making sure that all old links are pointing the new right way. But most of all, I want to make sure that you're aware of the different internal structures in URL depth. That's probably why most people would advise you not to go this way.

        Martijn.

        moon-boots 1 Reply Last reply Reply Quote 1
        • moon-boots
          moon-boots @Martijn_Scheijbeler last edited by

          www.website.com/category-name

          Then when you click through to a product:

          www.website.com/product-name

          I have encountered no problems doing this in Opencart. No 301 redirects were needed because the plugin takes care of this itself.

          I want to make sure that you're aware of the different internal structures in URL depth. That's probably why most people would advise you not to go this way.

          I'm sorry, I'm not sure what you mean in respect to different internal structures or why the above would be an issue.

          moon-boots 1 Reply Last reply Reply Quote 0
          • moon-boots
            moon-boots @moon-boots last edited by

            Any follow up?

            1 Reply Last reply Reply Quote 0
            • sergeystefoglo
              sergeystefoglo last edited by

              Hi there,

              I can't point you in a specific direction on how to go about doing this, but as Martijn mentioned it's important that you make sure:

              • 301 redirects are setup from old URLs to new URLs (/cat-name 301s to /prod-name)
              • ALL internal links are updated to /prod-name (for example, in the main navigation, footer, sidebars, etc.)
              • I believe what Martijn meant with the URL depth comment was that websites (particularly ecommerce sites) should be structured logically (mainly for topical authority). So for example, if you are a site that sells electronics, it's important from both a user and bot perspective that there is a domain.com/laptops/ page (which would be the category page). Under that, it makes sense to have a product page that would live on domain.com/laptops/macbook for example. It sounds like you are considering to remove the top-level category pages, which might result in a worse user experience and possibly a less-than-ideal setup for link equity being passed down to product pages.

              Martijn, is that what you were hinting at?

              1 Reply Last reply Reply Quote 0
              • Njnbiure45r4
                Njnbiure45r4 last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Dropping .html & Including Category in URL
                  Alick300
                  Alick300
                  0
                  3
                  81

                • Problem: Magento prioritises product URL's without categories?
                  Everett
                  Everett
                  0
                  9
                  1.9k

                • Canonical URL & sitemap URL mismatch
                  LynnPatchett
                  LynnPatchett
                  0
                  2
                  612

                • URL structure for categories, sub categories and products
                  Andy.Drinkwater
                  Andy.Drinkwater
                  0
                  2
                  106

                • Category vs Product level URL - Does it Matter?
                  AshShep1
                  AshShep1
                  0
                  5
                  145

                • Yoast & rel canonical for paginated Wordpress URLs
                  evolvingSEO
                  evolvingSEO
                  0
                  9
                  9.6k

                • From an SEO Standpoint, which is better for my product category URLs?
                  RyanKent
                  RyanKent
                  0
                  2
                  621

                • Robots.txt & url removal vs. noindex, follow?
                  Marcus_Miller
                  Marcus_Miller
                  0
                  3
                  1.6k

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy