I’ve installed Magento on Linux but the URL looks a bit funny. For instance when I point my browser to http://localhost/magento/, the URL is automatically changed to http://localhost/magento/index.php/ which looks strange since index.php is a file not a directory. Then for instance when I click on shopping cart I am redirected to: http://localhost/magento/index.php/checkout/cart/
I was just wondering whether anyone knows a way to get rid of the /index.php/ intermediate bit in the URLs which are being defined in the address bar of the browser?
sudo a2enmod rewrite && sudo service apache2 restartAdd the following rules to the
.htaccessfile under the Magento root: