Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.