Redirecting Community Server Blogs

written by Ryan Olshan on Sunday, July 30 2006

A while back, I used to have my blog located at http://blogs.dirteam.com/blogs/ryan before I moved it to here. The biggest challenge in doing so was making sure all of my existing links redirect to the links on this site. Here's how I did it.

1) Download Madgeek.RedirectModule.dll and place it in your Community Server bin directory.

2) Add the following lines to web.config making the appropriate changes to the format of targetUrl and destinationUrl:

<?xml version ="1.0"?>

<configuration>

  <configSections>

    <section name ="redirections" type="Madgeek.Configuration.XmlSerializerSectionHandler, Madgeek.RedirectModule" />

  </configSections>

  <httpModule >

    <add name ="RedirectModule" type="Madgeek.Web.RedirectModule, Madgeek.RedirectModule" />

    </httpModules>

    <redirections type ="Madgeek.Web.ConfigRedirections, Madgeek.RedirectModule">

      <add targetUrl ="^/blogs/ryan/(.*).aspx\??(.*)" destinationUrl="http://blogs.strongcoders.com/blogs/ryan/$1.aspx" IgnoreCase="true" permanent="true" />

    </redirections>

</configuration>

Kick this post on .NET Kicks

Similar Posts

  1. MagicAjax - Easy as 1, 2, 3
  2. Tweaking Community Server Out of the Box
  3. Tightenting Community Server Control Panel Security

Post a comment