from http://www.example.com/category.html/
to http://www.example.com/category.html
Go to ../app/code/core/Mage/Core/Block/Abstract.php
copy this file to ../app/code/local/Mage/Core/Block/Abstract.php
Find the following line of code:
from http://www.example.com/category.html/
to http://www.example.com/category.html
Go to ../app/code/core/Mage/Core/Block/Abstract.php
copy this file to ../app/code/local/Mage/Core/Block/Abstract.php
Find the following line of code:
These set of scripts are for Magento 2. For Magento 1, see this Gist.