Blogs has officially moved. Please update your links

After 7 1/2 years, my blog and all content has been moved to my own domain!  I’ve worked with the admins who run http://weblogs.asp.net to implement a 301 redirect.  Old links should redirect to the corresponding link on my new blog.  It’s been quite an adventure.  Check out the post related to standing up Orchard, here is the link  I’ve been really impressed with the performance of Orchard. I’ve been testing a VPS at GoDaddy (1 proc, 2 GB, 30 GB of ram) for $40 / per month.  So far so good. Stay tuned on this, more updates to come. 

Here are the URL Rewrite rules I implemented.  I used appcmd migrate config “iislogs.com/r” to update so the “r” folder, which handles all the redirects, would work in a ASP.NET 4.0 integrated app pool.

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
        <rule name=”Redirect archive Article” stopProcessing=”true”>
            <match url=”archive/(.*)/(.*)/(.*)/(.*).” />
            <action type=”Redirect” url=”http://www.iislogs.com/steveschofield/{R:4}” appendQueryString=”false” redirectType=”Permanent” />
        </rule>
        <rule name=”Redirect default.aspx” stopProcessing=”true”>
            <match url=”(default.aspx)” />
            <action type=”Redirect” url=”http://www.iislogs.com/steveschofield/” appendQueryString=”false” redirectType=”Permanent” />
        </rule>
                <rule name=”Redirect Everything Else” stopProcessing=”true”>
                    <match url=”.*” />
                    <action type=”Redirect” url=”http://www.iislogs.com/steveschofield/” appendQueryString=”false” redirectType=”Permanent” />
                </rule>
            </rules>
        </rewrite>
        <caching enabled=”false” enableKernelCache=”false” />
        <modules>
            <remove name=”ServiceModel” />
            <add name=”ErrorHandlerModule” type=”System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” preCondition=”managedHandler” />
            <add name=”ServiceModel” type=”System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ preCondition=”managedHandler” />
            <add name=”WarmupHttpModule” type=”Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter, Version=1.0.20, Culture=neutral” preCondition=”managedHandler” />
        </modules>
        <handlers>
            <remove name=”svc-Integrated” />
            <remove name=”xoml-Integrated” />
            <add name=”*_*” path=”*” verb=”*” type=”System.Web.HttpNotFoundHandler” preCondition=”integratedMode,runtimeVersionv2.0″ />
        </handlers>
        <validation validateIntegratedModeConfiguration=”false” />
    </system.webServer>
</configuration>

PS – I ran into a kernel mode cache issue so for redirects I don’t want them cached. 

Thank you,

Steve Schofield
Windows Server MVP – IIS
http://www.iislogs.com/steveschofield

http://www.IISLogs.com
Log archival solution
Install, Configure, Forget

Add a Comment