-
AuthorPosts
-
December 12, 2015 at 8:26 am #703961
Hi
when i view a category, the url shows: domain.com/product-category/the-category-name
when i view a product, the url shows: domain.com/product/the-product-name
i know i can change these names, but is there an option somewhere that enables to not show the in between tag so it shows as
category: domain.com/the-category-name
product: domain.com/the-product-namefor seo reasons this will be very nice because once you change category structure because of new categories added it will still keep the search results index related to the actual category.
also its easier for customers to remember shorter url’s
ot is this just not possible?
December 12, 2015 at 8:36 am #703967Hi There,
Unfortunately this is not possible due to the way WordPress resolves its URLs. It uses the ‘product-category’ (or any other text for that matter) base of an URL to detect that it is an URL leading to a product category.
When I say it is not possible, that is not completely true. There are SEO plugins that allow you to remove this base, but that can lead to a number of problems with performance and duplicate URLs. You will make it harder for WordPress to detect what page you are trying to reach when you type in a product category URL.
Also understand that the standard ‘Page’ in WordPress always has no base text in the URL. For example:
/about-page/ (this is the URL of a standard page) /product-category/category-x/ (this is the URL leading to a product category)
What would happen if we remove that ‘product-category’ part?
/about-page/ /category-x/
WordPress will have to do much more work to detect what page you are looking for when entering one of the above URLs. That is why I do not recommend using any SEO plugin to achieve this.
If you still want to do this, look at the WordPress SEO plugin which I believe is capable of doing it: http://wordpress.org/extend/plugins/wordpress-seo/.
Hope it helps
December 12, 2015 at 9:00 am #703977Thanks for clarifying this for me… i’ll try to find a shorter tag to add there
… the faster the store will function the better so i’ll go with the flow
But how did they do it here than?
December 12, 2015 at 9:46 am #704005pfff… i didn’t even add the url
did they work with shortcodes to add a category to a page or something?
December 12, 2015 at 5:33 pm #704307Hi Quinex,
That’s high customized store which uses /collection/ as basis. It could be custom permalink as well, or just a normal page. It’s because I don’t even see the woocommerce templates being use (except when going to cart).
It’s best if you could hire someone that could do same thing
Thanks.
December 13, 2015 at 4:05 am #704640No need to hire… when i know what to do where i can figure it out
Thanks anyway… already thought it was not using woocommerce templates all the way because there are many neat things in it that are not available readily in woocommerce, like the accordeon fields to display reviews, product description etc.
December 13, 2015 at 5:37 am #704679You’re welcome.
December 13, 2015 at 11:37 am #704935What if one would set shop and product permalinks to “/shop/%product_cat%” and category base to say “shop_”. There would only be a slight change of URL while browsing the categories. Not the most beautiful solution but how much would it impact SEO ranking?
December 13, 2015 at 3:47 pm #705153Hi Gabriel,
I’m no SEO expert, but if your marketing revolves around your category pages, then I think you should make your permalinks /shop/ instead of /shop_. It’s also a nice way of telling the search engine your site’s hierarchy.
Try this https://wordpress.org/plugins/custom-permalinks/ , or any plugin that will let you add new set of permalinks other than what’s on Admin > Settings > Permalinks. But again, since you’re working with woocommerce, it may require some customization.
Thanks!
December 14, 2015 at 8:10 am #706026Hi,
Thanks for the reply. I’ve tried Custom Permalinks, it’s not a realistic option with too many products to maintain.
And perhaps you misunderstand. As countless others have pointed out, what one wants for a webshop is the following permalink structure:
www.domain.com/shop/category/sub-category/product
But that is not possible because you get 404 if you set the shop page, product base and category base to the same slug, for example shop.
So my ugly quick of a hack suggestion was to set the category base to shop_ instead. Do you follow?
But I don’t know how much that will affect SEO.
Cheers,
G.December 14, 2015 at 2:50 pm #706505Hi there Gabriel,
Thanks for writing back!
That wouldn’t really be recommended, the _shop would still be seen by a search engine, as then you’d end up with _shop and shop for search results, possibly also causing confusion for customers. There was a snippet that used to work for what you need here http://www.fullthoughtcc.com/code-snippets/wordpress-code/woocommerce-seo-products-categories-path/ (At least I believe that would have given you the correct path?).
Unfortunately though the above no longer works with the latest version of WooCommerce, though it may give you a good starting place to work from.
Thanks!
December 14, 2015 at 4:13 pm #706597I’m aware it wouldn’t be recommended but I’m not sure how big the impact would be.
The point is that most customers will never notice the little underscore. It looks better than /product-category/.
G.
December 14, 2015 at 10:50 pm #706970Hi Gabriel,
Customers may not notice this but it may leave bad impact on search engines. I’d advise you to consult a SEO expert with regard to that.
Thank you!
-
AuthorPosts