Different domain names pointing to subfolders in Azure

Not sure if what I'm describing is possible, but if so I'd like to know how.

I have an ASP.NET Azure Shared mode website with a domain, lets say mydomain.com pointing to it. I have a shop there, which is currently at mydomain.com/shop.

What I'd like is to point a different domain, myshop.com to the page at mydomain.com/shop. Can I do that?

Upvotes: 0

Views: 66

Answers (2)

marcel
marcel

Reputation: 3272

I'm not sure if I get your question right, but you could use the HttpResponse Redirect from the .net framework in order to redirect the response.

Upvotes: 0

SeanCocteau
SeanCocteau

Reputation: 1876

Probably the quickest approach would be URL-Rewriting, which is installed by default on Azure Website / WebRole.

Configuration can be made in the web.config -> more details although you I would imagine if you're using MVC there might a slightly more elegant Routing method, maybe?

Upvotes: 1

Related Questions