My website I only use category URLs, I want to disable/redirect direct product link to link with category


example.com/productname [want to disable this]

I have set the SEO settings correctly for this:

Use Categories Path for Product URLs -> Yes

Create Permanent Redirect for URLs if URL Key Changed -> Yes

Use Canonical Link Meta Tag For Categories -> Yes

Use Canonical Link Meta Tag For Products -> No

We want to disable direct product access URL or redirect them with category URL.

Rewrite example.com/productname ---> example.com/catname/productname


Disable this redirect: example.com/productname

I referred this but it's not working in my case. Ref Link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.