Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Trent Brazeal 8 posts 28 karma points
    Dec 17, 2012 @ 23:04
    Trent Brazeal
    0

    uBlogsy and UrlRewriting.Net

    Hi all,

    I'm new to uBlogsy and setting it up for the first time on a site.  So far, I'm really liking it....  I also use UrlRewriting.Net in the site.  I am trying to rewrite the query strings.  I've started with the categories. 

    The problem is when the category is Server.UrlEncoded and it contains a space.  i.e. Category 1 is encoded to Category+1.

    The url I'm expecting (hoping to get) is /my-blog/category/Category+1 ... but this returns 404 error... Yet /my-blog/category/Category%201 works.  I like the + in place of the spaces like Server.UrlEncode is doing.   

    Any ideas why /my-blog/category/Category+1 doesn't work?

    Here is the rewrite rule.

     <add name="Categories Query"
          redirect="None"
          redirectMode="Permanent"
          virtualUrl="^~/my-blog/category/(.*)"
          rewriteUrlParameter="ExcludeFromClientQueryString"
          destinationUrl="~/my-blog?category=$1"
          ignoreCase="true" 
        />

     

    Thanks,

    Trent Brazeal


     


  • Trent Brazeal 8 posts 28 karma points
    Dec 17, 2012 @ 23:10
    Trent Brazeal
    0

    Forgot to post my versions:

    uBlogsy 2.1.1.1

    umbraco 4.8.0

    Thanks,
    Trent
Please Sign in or register to post replies

Write your reply to:

Draft