You can enable the Search Engine Friendly URLs from the Joomla administrator’s panel.
Step 1: Login to admin panel
Step 2: Go to Site
Step 3: Select Global Configuration and then SEO.
Step 4: Once you enable this option, you have to rename the htaccess.txt file in your Joomla directory to .htaccess.