I'm having trouble getting something to work. I've set up some rules in the Rewriting config file to handle some old urls on the site we're redeveloping in Umbraco, so that the old urls redirect to the new umbraco ones. It works fine on old pages that had unique page names, e.g. 'test.aspx', but the old site passed in page names on the query string (yuk, awful isn't it), and the redirect rules don't seem to pick up anything in the querystring. So for example the rewrite rule for ~/default.aspx?p=careers doesn't get picked up. In fact the rules engine appears to ignore the querystring entirely.
I've had a look on the forum for the rewriting component, but I've not had much luck, does anyone here know how to get the rewriting engine to match the querystring as well as the page name?
URL Redirects
Hi,
I'm having trouble getting something to work. I've set up some rules in the Rewriting config file to handle some old urls on the site we're redeveloping in Umbraco, so that the old urls redirect to the new umbraco ones. It works fine on old pages that had unique page names, e.g. 'test.aspx', but the old site passed in page names on the query string (yuk, awful isn't it), and the redirect rules don't seem to pick up anything in the querystring. So for example the rewrite rule for ~/default.aspx?p=careers doesn't get picked up. In fact the rules engine appears to ignore the querystring entirely.
I've had a look on the forum for the rewriting component, but I've not had much luck, does anyone here know how to get the rewriting engine to match the querystring as well as the page name?
Are you sure there is not an earlier rule (for instance "~/default.aspx") that is firing before it can even reach the querystring variation?
Sorry, been on holiday! I've tried removing all the rules and just having one with the querystring and that doesn't seem to work either. Any ideas?
is working on a reply...