This article would help you if you hosted your Magento website in IIS server and you want to remove index.php from URL for make URLs SEO friendly.
Let's change setting in Admin Panel
Go to Magento admin panel –> system –>configuration –>web –>Search Engines Optimization –> Use Web Server Rewrites –> Yes
Create web.config file under Magento root folder
add the following content to the file (tracing is optional)