how to include the querystring in UrlRewriting.config?
chaps,
maybe i'm missing somit real obvious...
we've this rewrite to handle years and month based urls for our blog:
so hitting:
/blog/category-name/2016/03/
is actually hitting:
/blog/category-name/?year=2016&month=03
trick is now we've added paging and a sort by that get passed as querystring params:
/blog/category/2016/03/?page=1&sort=datedesc
i figured changing the 'rewriteUrlParameter' from 'ExcludeFromClientQueryString' to 'IncludeQueryStringForRewrite' would do the trick but i keep getting 404's when i sort the page.
i'd still love to know what the difference between doing it here and in the 'UrlRewriting.config' and why the qs wasn't appended but for now, this works ;)
how to include the querystring in UrlRewriting.config?
chaps,
maybe i'm missing somit real obvious...
we've this rewrite to handle years and month based urls for our blog:
so hitting:
/blog/category-name/2016/03/
is actually hitting:
/blog/category-name/?year=2016&month=03
trick is now we've added paging and a sort by that get passed as querystring params:
/blog/category/2016/03/?page=1&sort=datedesc
i figured changing the 'rewriteUrlParameter' from 'ExcludeFromClientQueryString' to 'IncludeQueryStringForRewrite' would do the trick but i keep getting 404's when i sort the page.
am i missing something obvious?!
cheers,
jake
in the end, i solved this by using a regular rewrite in the web.config:
i'd still love to know what the difference between doing it here and in the 'UrlRewriting.config' and why the qs wasn't appended but for now, this works ;)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.