I have 2 different urls: mywebsite.com and myotherdomain.com
mywebsite.com is the default URL that goes to my site’s homepage. When someone types myotherdomain.com, I’d like it to go to mywebsite.com/other
Is this possible using .htaccess?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On
myotherdomain.comyou can use these directives:This will also append what follows the domain name to
/other/, e.g.will be rewritten to
By the way, these Apache docs can be helpful.