How to eliminate a sub-directory level from all URLs in Website
- by frank13
I have a website and I just setup an os shopping cart (ie., Magento)
I installed the cart in a sub-directory off the document root as /magento/ per the installation guidelines.
So my web site cart's URL is http://mydomain.com/magento/
I have no public pages off the document root and I actually want my cart to be my home page -- in other words, I want http://mydomain.com/magento/ to resolve as http://mydomain.com/
Is it possible? Can I use mod-rewrite to make it happen? If so, can you suggest what the mod-rewrite directives would look like?
Or is it simply a permanent redirect like:
redirect 301 /magento http://mydomain.com/
Thanks.