Howdy,
I'm trying to learn how to further utilize the siteurls.config to offer some better standard rewrites. I get how it works with complete strings, but could someone please explain the operator tags a little more? Like does (\d+) mean that tag will carry over the tabid number? Does (.*) carry over the existing string? And does $1 just carry the tabid over to the SendTo?
The idea is to reconstruct a common string over to a friendly alternative.
So if I wanted to change for example;
*/Tools/Stuff/tabid/33/Blog/BlogID/2/blogname.aspx
to
*/Tools/Blog/2/Blogname.aspx
Or even better, how can I carry at least that BlogID number over as a variable so it can apply to all postings with the same string?
Would it be something like this? Or am I completely wrong?
<RewriterRule>
<LookFor>.*/Tools/Stuff/tabid/33/Blog/BlogID/(\d+)/(.*)</LookFor>
<SendTo>~/Tools/Stuff/tabid/33/Blog/BlogID/$1/(.*)</SendTo>
</RewriterRule>
I've been banging my head with no success so far so any insight would be greatly appreciated! Cheers!