I would like to know how to configure Apache to do the following:
Configuration 1
When a user points their browser to http://localhost/ (and gets the contents of /var/www/index.html) the browser redirects to http://localhost/magento/ (and gets the contents of /var/www/magento/index.php)
Configuration 2
When the user enters the URL
http://localhost/magento/the contents of the directory/var/www/magento/index.phpare displayed but the URL changes tohttp://localhost/Conversely when the user enteres
http://localhost/in their browser the URL does not change but the contents of/var/www/magento/are displayed.http://localhost/foo/bar/foobar/and all URLS of this sort display the contants of/var/www/magento/foo/bar/foobarinstead of those of/var/www/foo/bar/foobar
I have tried defining a file called /var/www/.htaccess, which I am sure is
getting parsed by apache2, but I don't see any of the above happen. What
I've placed in it is:
RewriteRule / /magento/