Are woocommerce product urls supposed to act like this?

Question

So I have a dilemma and I’m not sure if I’ve done something wrong or if its intended to be like this. Maybe one of you could help me answer this.

This might have been asked before but I can’t find anything when searching for it. Maybe I’m just using the wrong terms?

Anyways lets get into the problem.

My product urls are structured like this:
example.com/products/category/productslug/
Now if I go to a product and change the url to something like this:
example.com/products/cate/productslug/
Please note that it could be any variations where the category is changed aslong as there is one letter in the category part of the url.
Then it will not give me a 404 error or redirect me to the normal url. In other words I will still be on the product page but the url will stay as it’s typed.

Changing /product/ or /productslug/ will give me a 404 error.

If I go to a post and do the same thing (they are structered like this: /category/postslug/) then I will be redirected to the right url.
So for example changing example.com/news/postslug/ to example.com/n/postslug/ I will be redirected to the original url.

I’ve been working a long time with wordpress and woocommerce and have never noticed this behaviour before and I’m not sure if it’s intended to be like this or if something is wrong with my rewrite rules.

Any clarification about this would be greatly appreciated.

Thanks in advance!

0
Ashendale 3 weeks 2023-01-16T03:04:06-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse