Removing File Extensions Using .htaccess
File extensions can be removed so as to make the website URL user friendly. Some have a mentality that through changing the index the security of their site improves while others think their SEO gets optimized. This is by removing an extension of a domain for instance- domain .com/index.html reduced to domain.com/html.
Below are procedures of how to Remove a file extension
- Log in to cpanel
- Move to files section- click on file manager
- At the top right corner,click settings-enable webroot- and check to show hidden files
- Check .htaccess and right click to edit
- Rewrite the codes with either .php or html to remove the extensions then click save changes.