Remove Product & Category from URLS in Wordpress
-
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/
-
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?
-
Any follow up?
-
Then when you click through to a product:
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.
-
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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Mass Referencing Supplier Product Info & SEO
Hi I have a mass referencing project which will mean taking between 1000-2000 SKUs from a supplier, taking all their content & loading it onto our site. I need to make a case for not doing this from an SEO perspective. As these are pages I want to rank. I'm going to push for optimising titles/meta titles before they're loaded in. However if not, I may be forced to load in the products as they are & go back to optimise everything - does anyone see a real issue with this? I know there are so many 'similar' descriptions of products on ecommerce sites & across the web, so how does Google deal with these? The pages won't be identical as the templates are different, but maybe 100-200 words of descriptions could be until we work through them. Although this isn't ideal - what are the implications? The problem for me is, the managers just want the products on the site, without much thought regarding organic traffic/categorisation initially. Thanks!
Intermediate & Advanced SEO | | BeckyKey0 -
Unlimited Product Pages
While browsing through my Moz campaign, I noticed that my site is pulling up unlimited numbers of product pages even though no products appear on them. i.e. http://www.interstellarstore.com/star-trek-memorabilia?page=16 http://www.interstellarstore.com/star-trek-memorabilia?page=100 http://www.interstellarstore.com/star-trek-memorabilia?page=200 I have no ideal how to resolve this issue. I can't possible 301 an unlimited number of pages, and I can see this being a big SEO problem. Any thoughts?
Intermediate & Advanced SEO | | moon-boots0 -
Tags and Categories Ranking
Hello A few times I have come across tags and categories ranking for some relevant search terms. This seems strange as all category and tag pages would have 0 external links back to them - whereas pretty much every other page on the site would have external links. In most cases thy seem to rank along with the page, for example: for the search term "voiceover recording xxxxx" The voice over recording page will rank, followed by a similar tag page... If I make the tag links 'nofollow' would that help stop this? Cheers
Intermediate & Advanced SEO | | wearehappymedia0 -
Ecommerce - Product Titles
Hi I want to find out how ecommerce sites optimise their product names: 1. When they have thousands of products 2. When some of their products are identical I notice on some sites, like this for example, they have no key phrases in their product titles http://www.argos.co.uk/static/Product/partNumber/6249346.htm How can this help for SEO? At the moment we optimise the titles as best we can for key phrases relevant to the products and differentiating attributes. Where we get stuck is, if their are 2 identical products - how can the content team quickly add a title which is useful for customers and search engines? Some products have no differences for us, but longer tail phrases are where we could get some good returns if the research is put in - it's just very labour intensive. Thank you
Intermediate & Advanced SEO | | BeckyKey2 -
Reviewing Category & Tag policy - Update
I recently (http://moz.com/community/q/less-tags-better-for-seo) started reviewing my category and tag policy, and things have been going very well. I thought I would share what I have done: Removed all tags from site Added unique descriptions for each post for the category excerpt. Only had the category description on the first page and use the description like a post to summarise and interlink to sub-categories or posts. This keeps pages from slipping down the number of clicks until it can be reached, improving link juice distribution. I also reduced the number of posts showing to 5, to allow more focus on the description (main part) of the category post. To add the category description on the first category page only in Wordpress, you need to go to the category.php or archive.php and change: to The overall aim was to have a hierarchal resource contained in the category page description. Whilst this is still a work in progress, you can see an example of what I am trying to achieve here: https://www.besthostnews.com/web-hosting-tutorials/cpanel/ https://www.besthostnews.com/web-hosting-tutorials/cpanel/mail/ If you have any further tips and advice as I continue to implement this (with good results so far), please feel free. Also, you can use the Visual Term Description Editor plugin to allow the wysiwyg editor for the category descriptions.
Intermediate & Advanced SEO | | TheWebMastercom1 -
Canonical URL availability
Hi We have a website selling cellphones. They are available in different colors and with various data capacity, which slightly changes the URL. For instance: Black iphone, 16GB: www.site.com/iphone(black,16,000000000010204783).html White iphone, 16GB: www.site.com/iphone(white,16,000000000010204783).html White iphone, 24GB: www.site.com/iphone(white,24,000000000010204783).html Now, the canonical URL indicates a standard URL: But this URL is never physically available. Instead, a user gets 301 redirected to one of the above URLs. Is this a problem? Does a URL have to be "physically" available if it is indicated as canonical?
Intermediate & Advanced SEO | | zeepartner0 -
Should I remove the ?replytocom variables in wordpress?
I'm using Yoast's wordpress plugin and there is an option to remove the replytocom variables. I'm curious what everyone's thoughts were on that, and if I should do it. Here's the site if you need to see it. Thanks!
Intermediate & Advanced SEO | | NoahsDad0 -
Dynamic URLs Appearing on Google Page 1\. Convert to Static URLs or not?
Hi, I have a client who uses dynamic URLs thoughout his site. For SEO purposes, I've advised him to convert dynamic URLs to static URLs whenever possible. However, the client has a few dynamic URLs that are appearing on Google Page 1 for strategically valuable keywords. For these URLs, is it still worth it to 301 them to static URLs? In this case, what are the potential benefits and/or pitfalls?
Intermediate & Advanced SEO | | mindflash0