Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

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

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>