Skip to content

Instantly share code, notes, and snippets.

View tcmorris's full-sized avatar
👋

Thomas Morris tcmorris

👋
View GitHub Profile
@tcmorris
tcmorris / PageNotFoundContentFinder.cs
Created December 16, 2014 18:07
Page not found content finder for Umbraco
using System.Linq;
using Umbraco.Core;
using Umbraco.Core.Models;
using Umbraco.Web;
using Umbraco.Web.Routing;
public class PageNotFoundContentFinder : IContentFinder
{
public bool TryFindContent(PublishedContentRequest request)
{
@tcmorris
tcmorris / redirect
Created August 5, 2014 08:56
Redirect rule to remove/force www
<rewrite>
<rules>
<!-- Remove/force the WWW from the URL.
You need to install the IIS URL Rewriting extension (Install via the Web Platform Installer)
http://www.microsoft.com/web/downloads/platform.aspx
** Important Note
using a non-www version of a webpage will set cookies for the whole domain making cookieless domains
(eg. fast cdn-like access of static resources like css, js and images) impossible. -->
@tcmorris
tcmorris / gitignore
Last active August 29, 2015 13:56
gitignore with some umbraco/visual studio specifics
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# Extensions
*.suo
*.user
*.sln.docstates
*.sln.cache
*.obj
*.pdb