Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a domain name mydomain.com, but I want to redirect its traffic to mydomain.com/~myname/ on Apache 2.2. I tried to write redirect rule but it doesn't seem working. It's because when I access to mydomain.com from outside of LAN, I do not have a permission to access /. "index.html" is set up at /Users/myname/ which is DocumentRoot of web. How can I redirect a traffic or properly set up so that a user will see index.html in /Users/myname/ when they type mydomain.org?

Thanks

share|improve this question
1  
It may be helpful to know what you tried exactly, i.e. post the exact file and contents of the redirect rule you mention. – nerdwaller Jun 18 '13 at 12:50
    
Looks somewhat similar to How to point subdomain and subdirectory to another host (which, unfortunately, doesn’t have any answers). – Scott Jun 18 '13 at 14:43

You must log in to answer this question.

Browse other questions tagged .