For some reason, I am getting .html in my product URL, like so: https://example.com/mycategory.html/myproduct.html. I want to remove .html from mycategory when I am on a product page.

Is there a setting for this? I know I can remove .html from the category completely, but this is not what I want, I want it to be there in category pages. Strange thing is, for some products it works, no .html in the category path.

Magento 2.3.3



1 Answer 1


Go to

Stores-> Configuration-> Catalog-> Catalog-> 
Search Engine Optimization-> Category URL Suffix

to remove .html you can change configuration and save it.

  • This will also remove it from the category page URL, which is not what I want.
    – EOB
    Aug 4, 2020 at 9:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.