Magento by default added .html extension for your category and product. If you want to change that do the following steps as per mentioned below.
- Login Magento admin panel.
- Click on System and select configuration option
- Select SEO option from catalog section.
- Next, delete ‘.html’ from your Product URL and Category URL suffixes.
- Once all the changes are done, Click on System and select Index Management option.
- Click on Reindex all data.
- Then after that clear your cache.
Can I manage all the things from .htaccess file?
Yes, you can change from .htaccess file but Ma Mogento is providing ready made functionality so we can do without writing any code.