How to remove index.php from magento URL

How to remove index.php from magento URL

If you want from this URL :: http://www.yourdomain.com/index.php/plastic-surgery/blade-breakers.html  to http://www.yourdomain.com/plastic-surgery/blade-breakers.html

Just follow below step ::

Step1: Go to root folder[E:\xampp\htdocs\magento] and you will find the .htaccess file there.

Replace

#Rewrite Base/ magento

Replace to

#Rewrite Base/

Step2: Go to your admin panel. System->Configuration->Web->Search Engine Optimization “yes”

Step3: Clear your Cache from Cache management page (system cache management).

hope it will help you.