In my site url display like www.abcd.com/one.html, How can i remove .html in my url.

Note : Product Url Suffix & Category Url Suffix EMPTY

Still my url display .html, How can i remove

  • Did you try system -> configuration -> Search engine Optimization -> Product URL Suffix(remove) & Category URL Suffix(remove)
    – Magento 2
    Nov 4, 2016 at 5:37
  • Bro, i mentioned above, Product Url Suffix & Category Url Suffix EMPTY, still display like .html
    – Gem
    Nov 4, 2016 at 5:38
  • ok please reindex it
    – Magento 2
    Nov 4, 2016 at 5:39
  • i did, bro but no improvement
    – Gem
    Nov 4, 2016 at 5:41
  • Remove var folder from root Nov 4, 2016 at 5:42

2 Answers 2


In backend go to

Stores -> Configuration -> Catalog

Go To Search Engine Optimization tab


Category URL Suffix to null , Product URL Suffix to null

Run command,

php bin/magento indexer:reindex

Clear browser cache.


Try bellow my suggestions for you.

run below commands

php bin/magento indexer:reindex

php bin/magento cache:clean

Delete var folder

Delete your browser cache.

I hope it will work for you.

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.