1

Assuming that I have the following ASP.NET website: http://example.com

I want to expose this url:

http://yourCompany.example.com/yourName

and I want it to route to

{myController}/{myAction}/{yourCompany}&{YourName}

Can I setup a route for this in my RegisterRoutes in RouteConfig class?

1

1 Answer 1

0

You will have to redirect from the http://yourCompany.example.com/[0] to http://example.com/yourCompany/[0] as the subdomains are treated as stand-alone domains.

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.