0

This is a different question than the one here: Is it possible to make an ASP.NET MVC route based on a subdomain?

I'm not looking to reroute based on subdomain, I just want to be able to include a subdomain and end up in the same place.

user1.mydomain.com should go to the same place as user2.mydomain.com

I can pluck the subdomain from the request to use it.

Currently a request to foo.localhost returns a 404 error.

Help would be much appreciated.

1 Answer 1

1

You can do this at the web host level. It's called site bindings in IIS, I'm not sure what Apache calls it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.