Skip to content

Instantly share code, notes, and snippets.

View nickspiers's full-sized avatar

Nick Spiers nickspiers

View GitHub Profile
WebApplication2> info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
WebApplication2> Request starting HTTP/1.1 GET http://localhost:54955/api/Foos?$expand=man%28$expand=chu%29
WebApplication2> info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
WebApplication2> Route matched with {action = "Get", controller = "Foos"}. Executing action WebApplication2.Controllers.FoosController.Get (WebApplication2)
WebApplication2> info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
WebApplication2> Executing action method WebApplication2.Controllers.FoosController.Get (WebApplication2) - Validation state: Valid
WebApplication2> info: Microsoft.EntityFrameworkCore.Infrastructure[10403]
WebApplication2> Entity Framework Core 2.1.1-rtm-30846 initialized 'AppContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: None
WebApplication2> info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
WebApplication2> Executed action method
@nickspiers
nickspiers / web.config
Created July 15, 2013 19:28
IIS Rewrite remove WWW rule
<system.webServer>
<rewrite>
<rules>
<rule name="Remove WWW" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" />
</conditions>
<action type="Redirect" url="http://{C:2}{PATH_INFO}" redirectType="Permanent" />
</rule>
@nickspiers
nickspiers / web.config
Last active December 19, 2015 18:58
301 IIS Rewrite Module for Legacy URLS
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect rule for Redirects">
<match url=".*" />
<conditions>
<add input="{Redirects:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Redirect" url="{C:1}" appendQueryString="false" />
</rule>