Magento 2: Product URL Suffix

Open your admin panel navigate on Stores->configuration->Catalog click on Search Engine Optimization tab

Here you can remove

Product URL Suffix =

Category URL Suffix =

enter image description here

Make these fields blank (remove .html from both fields) save the config and reindex and clear cache of your store. it's done!


You can just remove .html suffix from your admin panel.

Go to AdminPanel,

Stores -> Configuration -> Catalog -> Catalog

Go to Search Engine Optimization Section,

Unset value for textfield inside Product URL Suffix

Same as you can do it for category url suffix below another field is Catogory Url Suffix.

If you can do any text with this field like .php then its display suffix as .php in your link.

Remove var folder and run commnad php bin/magento indexer:reindex