How to enable SEF (Search Engine Friendly) URLs in Joomla! 3.x?
To enable the Search Engine Friendly URLs, go to the Joomla! 3.x administrator’s panel. Go to Site > Global Configuration > SEO. Once you enable this option, you have to rename the htaccess.txt file in your Joomla! 3.x directory to .htaccess.