I dont want to use collection urls in my product urls

hy my name is fozan zaidi

i dont want show my collection urls in my product urls

like

https://abc.com/collections/grocery-products/products/tooth-paste

but i want to only show https://abc.com/products/toot-paste

how can i solve this problem anyone help me to solve this problem

Hi, @fozan_zaidi !

Welcome to the Shopify Community! Happy to explain a little bit about URLs in Shopify. For the most part, Shopify-generated URLs are not customizable, only the handles are.

Shopify is built on Ruby on Rails. Ruby on Rails uses routing that uses paths to pull information from the Admin. This method keeps everything clean, fast, and visually digestible, which is why the URLs are structured this way. Anything after /products/ is customizable, but not before. This is done in the Edit Website SEO section of each product, page, collection, blog article.

If you really would prefer to customize, there is some more information in this Stack Overflow article. Please note that this is a third-party article, and customization of URLs is not supported by Shopify. Otherwise, perhaps another Community user will have some further advice.