0

I would like to know if the following is possible. I have a website called www.myweb.com. This website could be a directory of say football teams. The list of teams could be found here

www.myweb.com/home/teamlist

On selecting a team one would be take to

www.myweb.com/teams/teama or
www.myweb.com/teams/teamb etc

the content under the teams area would be related to them e.g.

www.myweb.com/teams/teama/fixtures
www.myweb.com/teams/teama/news

i have the above working but would like to know if it is even remotely possible to have a separate website for each team which still uses the current models, views and controllers e.g.

www.teama.com

would go to display the data from

www.myweb.com/teams/teama

where 'teams' is the controller and 'teama' is a parameter for a 'details' action. Also doing

www.teama.com/fixtures 
www.teama.com/news

would display the same stuff as

www.myweb.com/teams/teama/fixtures
www.myweb.com/teams/teama/news

many thanks and hope i have worded it ok.

Rudy

4

2 回答 2

0

看看 MVC 域路由,我自己还在研究它,因为我有类似的要求,但我认为这应该满足你的需要。

以下链接可能很方便:

ASP.Net MVC 域路由

Bolt on multi-tenancy in ASP.Net MVC Part I(第 II 部分的链接在页面上)

于 2013-02-13T23:51:45.040 回答
0

在这种情况下,我会考虑使用IIS URL 重写

于 2012-06-19T21:31:53.197 回答