Posted on 06/05/2020 14:12:08
Hi Morten,
It sounds like a huge feature with little value :)
I don't disagree, but thought there might be a simple/quick way to at least expose the rules from web.config.
When and why would you prefer to handle this in DW instead of IIS (or other hosting environment)? Can you describe some common scenarios?
In +90% of our projects we have to implement 301 redirects. We can't have a single approach /person to do this. Customers will handle some in Url Redirects and some has to be made by a programmer with access to web.config.
One of the common settings is 301 redirects for products which has to be a pattern (considering we handle thousands of skus with every project)
Some customers don't even give us access to web.config in Production servers, which complicates matters.
Should it be possible to register a long list of regular expression patterns and replacements in DW?
That would be great for sure. Being accessed in the UI means we can also deploy redirect rules with the Deployment Tool and/or commit them to VCS
Should it be possible to edit complex redirect rules in the same way as you can do in IIS?
I don't have a clear picture where to draw the line. I definately was not thinking of 100% parity with IIS. I was really looking to be a step closer to managing it in DW, just like other platfoms can do, but mostly to allow for something we could commit to git and deploy
Something else? Can you provide examples?
Our common scenarios are:
- Patterns for product urls
we set them to ID=0&ProductId=0 so we don't need to handle friendlyUrls
in the past we even had to redirect to a dummy page to get the primary groupid
- Patterns for "blogs"/"articles" urls
Regarding "something else", we usually do bulk imports to Url Redirects. We ask customers to give us an excel file with 2 columns, the old url, and then we populate the new one and import it. The list of old urls is basically their most important ones (excluding the ones we can set through patterns) which they might get from Google Analytics.
Does that answer all of your questions?
Nuno Aguiar