14 July 2006

Qgyen.ExtendedUrlMapping for CS v2.1

Qgyen.ExtendedUrlMapping v2.1.60714

With the release of Community Server v2.1 Beta1, I've now packaged up a new version of my extended url mapping add-on.  This add-on allows you to very easily map one URL within Community Server to another.  For instance, it allows you to safely and easily move a blog in CS to the root of your site.  You simply map / to match up to /blogs/myblog/.  Or you can use it to move your photos to /photos/ from /photos/mygallery/.  This allows for a quick and easy way to get CS from its default multiple blog, multiple gallery configuration to a single blog or single gallery setup, with a lot of flexibility.

This new version doesn't contain any new features, but the API for how it works changed just slightly with Community Server v2.1.  So, the previous release will not work on CS v2.1, and the new build of this module will not work with CS v2.0.  Additionally, with CS v2.0, we'd found an issue with the ASP.NET 2.0 framework where pages were redirecting improperly, causing sites to disappear from search engines like Google and MSN.  The work around to this was a different overload of a method in the .NET 2.0 framework, and this was implemented in CS v2.1.  However, this module takes over that piece of code.  To resolve this, the new release contains both an ASP.NET 1.1 build and an ASP.NET 2.0 build that correctly addresses the problem. 

Download here (Updated the download URL)

This contains both a compiled binary for ASP.NET 1.1 and ASP.NET 2.0, as well as the source code/solution files for ASP.NET 1.1 and ASP.NET 2.0.

Posted 4:49 pm | Archive

Comments

Skopy on 7/15/2006 at 1:11 am

Awsome Work Ken,

Appreciate the CS Team members commitment to provide valuable support.

Cheers,

Skopy

dmwc on 7/19/2006 at 8:41 pm

I setup <add path="/" newPath="/Forums" /> but it's seem not work, but mapping to blogs or photos is ok.

I setup wrong ? or point root to forums needs other setting?

on 7/21/2006 at 8:55 pm

The URL remapper wouldn't be suitable for simply moving the forums to the root.  You can easily do that by moving the contents of the forums folder to the root and modifying the location entry for the forums in the SiteUrls.config.

The mapper is for remapping things like a blog and a gallery, not so much for moving the location of an entire application.

Jarda Jirava on 7/27/2006 at 12:33 am

Hi, sorry for my question. I would like to configure my site to use CS 2.1 beta 1 as single blog with gallery. I use your urlrewriter and setup .config files. And the result is - bad. When I first go to homepage (localhost/cs) it's working. But the links to blog folows to localhost/cs/blogs and not to localhost/cs (same situation with link to posts that looks like localhost/cs/blogs/sample_weblog/archive...). Please can you help me? I'm on the end. Thank you Jarda

made changes:

communityserver.config - added urlrewriter and siteurlprovider, commented out default siteurlprovider

siteurls.config - added extendedMappings with this content

[add path="/gallery" newPath="/photos/sample" /]

[add path="/" newPath="/blogs/sample_weblog" /]

and changed ##blogdirectory## to empty string.

I hope this is all or not?

ajma on 7/28/2006 at 1:48 pm

Wasn't there a way to do this in 2.0 without an add-on? What's the difference?

LZB-CC光纤液位报警器 on 7/28/2006 at 11:51 pm

Appreciate the CS Team members commitment to provide valuable support.

J-O Eriksson on 8/08/2006 at 1:18 pm

Ken,

Will this module take care of trackbacks for blogs in the root as well? I am currently running my blog at the root with a different method, and are having some troubles configuring the trackbacks.

on 8/08/2006 at 5:07 pm

Yes, it will.  My blog is at the root and trackbacks work just fine: http://qgyen.net/blogs/1870.aspx has a trackback from yesterday.

Trackbacks are just another request... nothing real special about them that would cause them not to work.

J-O Eriksson on 8/09/2006 at 1:23 pm

I used Dan Bartels method of doing blog in root, and it seems to have broken the trackbacks. I've seen others post as well about similar problems.

I will try your mod.

J-O Eriksson on 8/12/2006 at 8:37 am

I've installed your mod Ken, and it seems to work fine. I also installed your AllCommentRSS, but the link it gives

/blogs/allcommentrss.ashx?App=j-o_erikssons_blog&UserName=myUserName&Token=MyToken

report a "cannot be found" error. Would this also not have anything to do with running blog at the root?

Even if I try to remove the "blogs" part of the link above it doesn't work. Any ideas?

J-O Eriksson on 8/12/2006 at 8:56 am

Solved it! First, I don't know if AllCommentRss was ASP .NET 2.0? But I converted it to 2.0 and referenced the CS DLLs from the release of the ASP .NET 2.0 version and rebuilt it. It still didn't work.

Looking through your code I saw you throw a 404 if the current user is not set as owner for the blog. Well I am admin at my site so I never wrote anything on the owner setting. When I did that AllCommentRSS started to work :-)

Dave Burke on 8/23/2006 at 7:27 am

Your reply on not using your ExtMapper for Forums is exactly what I was looking for.  I was hoping to use it as a cleaner way than copying the /forum contents to the root.  Thanks!