Posted on 20/10/2021 11:44:07
>> As for your suggestion, does the Customized URLs settings avoid these jumps?
Most likely yes, but it depends on where you use it.
With friendly URLs turned on, outbound links are automatically changed. So if you have a template that outputs something like /Default.aspx?ID10&GROUPID=GROUP12, the resulting HTML will contain a link like /Products/Bikes. Then when the browser visits /Products/Bikes, it will be translated back internally to /Default.aspx?ID10&GROUPID=GROUP12 which means no 30X redirect is happening.
>> As far as we know, we can configure them in Settings > HTTP > Customized URLs, in Settings > HTTP > Redirects, in rewritemaps.config file, or in Web.config file.
These are somewhat different things:
1. Settings > HTTP > Customized URLs
These are for built-in friendly URLs. It creates URLs like /products/bikes automatically. This should be the first area to look into to get your link structure correct.
2. Settings > HTTP > Redirects
This is for additional redirects, and covers uses case like:
- Migration of an old site to Dynamicweb. For example, this allows you to map a URL on your old site /index.php?Prod=123 to something like /products/mongoose
- Marketing URLs where you have a short URL like /win that maps to a deeper URL like /customers/actions//2021/winter/participate
3. in rewritemaps.config file
This uses IIS URL rewrite to convert /something-old to /something-new. This happens at the server level, even before Dynamicweb kicks in and it allows you to define how it should behave (redirect or rewrite). It's similar to #2 above but then at the server level. It's good for managing URLs in bulk, but less visible for content managers as it happens in server config files.
4. in Web.config file - same as in web.confg but less obvious and could lead to data loss when the file is overwritten with a new one.
So, in summary, start with 1 and optimize your URLs. Then look at #2 or #3 for inbound URLs you want to redirect. If you use #2, you can specify the pretty (final) URL as the destination so you can map the external URL /list-mongoose-bikes to whatever pretty URL you need like /products/list/mongoose instead of ID=123&GROUIPID=456
Hope this helps but let me know if it doesn't.
Imar