This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Jumoo.uSync.BackOffice; | |
using Jumoo.uSync.BackOffice.Handlers; | |
using Jumoo.uSync.BackOffice.Helpers; | |
using Jumoo.uSync.Core; | |
using Jumoo.uSync.Core.Extensions; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Linq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rule name="RedirectToDutchHomepage" enabled="true" stopProcessing="true"> | |
<match url="^$"></match> | |
<conditions> | |
<add input="{HTTP_ACCEPT_LANGUAGE}" pattern="^nl"></add> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}/nl/"></action> | |
</rule> | |
<rule name="RedirectToFrenchHomepage" enabled="true" stopProcessing="true"> | |
<match url="^$"></match> | |
<conditions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DefaultController : RenderMvcController | |
{ | |
[UmbracoDonutOutputCache(CacheProfile = "LongPageCache", | |
Options = OutputCacheOptions.NoCacheLookupForPosts & | |
OutputCacheOptions.ReplaceDonutsInChildActions, Order = 100)] | |
public override ActionResult Index(RenderModel model) | |
{ | |
return base.Index(model); | |
} | |
} |