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?
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
Forgot to post my versions:
uBlogsy 2.1.1.1
umbraco 4.8.0
is working on a reply...