How do I redirect all users from *.example.com and example.com to foo.example.com?
My server is using Apache.
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.
Assuming you want to reroute *.example.com/xyx to foo.example.com/xyz you can do this.
Though I should note that you might want to consider doing such domain-wide redirection via DNS configuration, if you are pointing them to a site on a different IP address.