In Valid Logic

Endlessly expanding technology

Qgyen.ExtendedUrlMapping for CS v2.1

with 12 comments

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.

Written by krobertson

July 14th, 2006 at 4:49 pm

Posted in Archive

12 Responses to 'Qgyen.ExtendedUrlMapping for CS v2.1'

Subscribe to comments with RSS or TrackBack to 'Qgyen.ExtendedUrlMapping for CS v2.1'.

  1. Awsome Work Ken,

    Appreciate the CS Team members commitment to provide valuable support.

    Cheers,

    Skopy

    ken

    15 Jul 06 at 1:11am

  2. 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?

    ken

    19 Jul 06 at 8:41pm

  3. 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.

    ken

    21 Jul 06 at 8:55pm

  4. 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?

    ken

    27 Jul 06 at 12:33am

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

    ken

    28 Jul 06 at 1:48pm

  6. Appreciate the CS Team members commitment to provide valuable support.

    ken

    28 Jul 06 at 11:51pm

  7. 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.

    ken

    8 Aug 06 at 1:18pm

  8. 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.

    ken

    8 Aug 06 at 5:07pm

  9. 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.

    ken

    9 Aug 06 at 1:23pm

  10. 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?

    ken

    12 Aug 06 at 8:37am

  11. 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 :-)

    ken

    12 Aug 06 at 8:56am

  12. 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!

    ken

    23 Aug 06 at 7:27am

Leave a Reply