To enable mod_rewrites and SEO friendly Magento URLs which removes the index.php from the URL of your Magento store, you should enable mod_rewrites.
Step 1
Find this in the .htaccess file in the root of your website.
## you can put here your magento root folder ## path relative to web root #RewriteBase /magento/
Step 2
Remove the # and magento/ so that it looks like:
## you can put here your magento root folder ## path relative to web root RewriteBase /
Step 3
Go to Magento admin pannel: System > Configuration > Web > Search Engines Optimization > Use Web Server Rewrites:and set to: YES
You should now be able to see your pages without the index.php in the URL.