How to Remove index.php in Magento

Change few change, you will be able to do. Here are the following steps:

1. Change to ‘Yes’ at "Use Web Server Rewrites". Located in "Admin>System>Configuration>Web>Search Engine Optimization".

2.   Change to ‘Yes’ at "Use Web Server Rewrites". Located in "Admin>System>Configuration>Web>secure/Use Secure URLs in Frontend".

3. vi /yourdir/.htaccess

Uncomment the statement: "RewriteBase /magento/" and change it to "RewriteBase /yourInstallationFolder" if you used subfolder installation.

4. save magento configuration, delete cache, now you are done.

Good Luck