Agent Based Sub Domain Matching Url Rewrite Rule
Type: MakingWaves.Common.EPiServer.UrlRewriting.AgentBasedSubDomainMatchingUrlRewriteRule (assembly MakingWaves.Common.EPiServer.UrlRewriting.dll)
Uses sub domain to match the rule. For example mobile sub domain "m." or "www.m.". Template selection can be performed as well based on User Agent sent by browser.
Examples
- http://m.somedomain.com/News/Website-Launch/ <--> /Mobile/IPhone/Templates/News.aspx (if User Agent matches “*.IPhone.*” )
- http://www.m.somedomain.com/News/Website-Launch/ <--> /Mobile/Regular/Templates/News.aspx (for other agents)
Configuration
<makingWaves.urlRewrite> <rules> <add name="MobileRule" type="MakingWaves.Common.EPiServer.UrlRewriting.MobileDomainAndAgentUrlRewriteRule, MakingWaves.Common.EPiServer.UrlRewriting" subDomain="m." rootPath="MobilePath/Regular"> <ruleProperties> <add propertyType="agent" agentPattern=".*IPhone.*" pathSuffix="MobilePath/IPhone"/> </ruleProperties> </add> </rules> </makingWaves.urlRewrite>