This package provides XbK administrators with an interface to assign additional domain aliases to a website channel. This package functions by intercepting the request in the middleware and rewriting the host to that of the assocaited website channel.
The extension was developed to meet requirement to be able to use a hosted development site that references the same database shared with the development team. Due to the current limitation of Website Channels to only support a single domain binding, the hosted development site was unable to render the content for review/testing.
| Xperience Version | Library Version |
|---|---|
| >= 29.5.3 | 1.0.0 |
Add the package to your application using the .NET CLI
dotnet add package XperienceCommunity.DomainAliases
or via the Package Manager
Install-Package XperienceCommunity.DomainAliases
-
Install the NuGet package.
-
Update your Program.cs to register the necessary services and execute the middleware.
using XperienceCommunity.DomainAliases;
...
builder.Services.AddDomainAliasesExtensionServices();
...
app.UseDomainAliasesExtension();