There are some old threads about Vanity URLs with broken links, so I'm re-upping this for current information.
At this time we have content folks manually adding vanity URLs using a built-in CMS feature, the Custom Redirects Manager.
We want to automate insertion of the vanity URL such that it appears just as if they had manually entered it in the Custom Redirects Manger. How is this accomplished through the API? If there's not API support for it, can we go directly to the DB?
I do see that this data appears to be stored in table 404Handler.Redirects and given that our nighly batch process for adding new "sites" and deactivating old ones is effectively an off-hours singleton, I would be comfortable directly updating this table -- but would prefer to go through the API if there is one.
Not quite an answer to your question, but hopefully points you in the right direction -- if the redirects are stored in the 404Handler.Redirects table, then I suspect the site is using the Geta 404 handler add-on (formerly BVN404handler) (.NET5/CMS 12 version here).
IRedirectsService.cs might be the place to look?
Thanks Daniel; I'll check it out!
This is a 3rd Party AddOn, I will favour to use DB directly, have a look this implementation https://github.com/Geta/404handler/blob/master/src/Geta.404Handler/Core/Data/SqlRedirectRepository.cs