Connect.Collaborate.SharePoint

How to redirect a blog feed (the KISS Solution)

After upgrading from WSS v2 with the Bluedog limited RSS feed generator to WSS v3 which includes a built in RSS generator, I could no longer use my blog to tell people that I had a new feed URL. I had to find a way of getting the old RSS url redirected for all the existing subscribers.
I was lucky that I had created my new top level site with a sub-site called blog which matched the url of the old FrontPage Blog solution I had used previously. In this site, I created a Web Part Page Library called Log and in that placed an aspx page called DisplayLog.aspx with the following content (using SharePoint Designer)

<%@ page language="C#" %>
     <%
         Server.Transfer(@"/_layouts/listfeed.aspx?List={D5813C18-934F-4FD6-9068-5CDD59CE56BA}");
%>

But you can’t do that, I hear you say. Well, in WSSv3 you can if you add the following to your web.config, SharePoint, SafeMode section.

<PageParserPaths>
  <PageParserPath VirtualPath="/pages/blog.aspx" CompilationMode="Always" AllowServerSideScript="true" />
</PageParserPaths>
 
The path statement can include a wild card in which case you can also add IncludeSubFolders="true" parameter to the PageParserPath.

Now, all those RSS readers happily get an rss response.
Posted by Ian Morrish on Monday, 29 May 2006 12:42 | 0 Comments

Links to this post

Trackback from Blog on 12 Apr 2008 08:58

Name

Url

Email

Comments

CAPTCHA Image Validation