How to eliminate a sub-directory level from all URLs in Website
Posted
by
frank13
on Stack Overflow
See other posts from Stack Overflow
or by frank13
Published on 2012-09-14T14:41:16Z
Indexed on
2012/09/14
15:38 UTC
Read the original article
Hit count: 539
mod-rewrite
|redirect
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.
© Stack Overflow or respective owner