English 中文(简体)
马达加斯加
原标题:MVC3 Dynamic SubDomain Routing

First of all, I have read a lot of post relating this issue like: Asp.net MVC RouteBase and IoC , Tenant-specific routes for dynamically loaded modules , and many others.

What I want is: - Dynamically create pages like tenant1.mydomain.com, tenant2.mydomain.com, etc. - My tenants will have the same functionality but just different content, styles, title, etc.

I have tried extending RouteBase class but have read that is not a clean solution. Then I have tried creating a custom RouteConstraint like above posts recommend but not succeded.

帮助我!

Thanks!

最佳回答

我通过做两件事实现了这一目标。 (1) 提供选择正确内容的功能,通过一家工厂提供储存库,工厂将聚氯乙烯放在生产上。 这里的问题是,有可能通过自己没有帐篷的各实体的关系来收集错误的数据。

(2) 如果使用该模板,则是一种基本的习俗观念发动机,它负责统一语言的主机部分,如果该模板被找到,则将寻找一个客户特定模板(通过文件夹结构)。

在这两者之间,我利用一个系统(就我的情况而言)通过同样的内容管理系统和产品管理工具提供多个网站。

问题回答

暂无回答




相关问题
Laravel wrong redirecting to login page after login

In a multi tenancy with subdomain enviroment (http://zapburger.dex.local) when user fills login form with valid data and make login, laravel redirect to dashboard route (as expected) and then redirect ...

Multitenancy and Partitaioning

HI There, i have to make my application SAAS compliant .For achieving multi tenancy , i was thing of partitioning the data , and each partition will be for a tenant. and this partitioning will be ...

Zend Framework - pass variable to every controller

I m working on multi-tenant application in Zend Framework which gets it s tenantID from the subdomain name (mod_rewrite -> index.php -> matches it against the database). My question is - how do I set ...

Multiple application instances on the same database

I m writing an application that that I m going to provide as a service and also as a standalone application. It s written in Zend Framework and uses MySQL. When providing it as a service I want users ...

Multitenant DB: Why put a TenantID column in every table?

Every tutorial I ve seen about Multitenant database models tells you to put the TenantID in every single table: zoos ------- id zoo_name tenant_id animals ------- id zoo_id animal_name tenant_id ...

热门标签