Magento SEO friendly url

Magento SEO friendly url with below 2 steps

#1 Go to Magento Admin

Go to  System > Configuration > Web > Search Engine Optimization

Use Web Server Rewrites: YES

Then Go to Cache Management page and Refresh your cache and refresh to  Check  the site.

#2 open .htaccess file from root directory and edit it

on htaccess file you will find #RewriteBase /magento/ on line 123

remove comment ‘#’ and set relative magento directory path