Thre are a lot of ways to transform a URL in Abyss, so I wanted to see what the (far more experienced) community thought might be the best way to accomplish what I need to do. I'm a developer so I don't need step-by-step instructions or anything, just someone who knows all the options pretty well to point me in the right direction for the technology that will best and most simply accomplish it.
I have URLs coming with FQDNs like "https://
hostname.domain1.com", where "hostname" will vary (I know that HTTP calls the entire thing "hostname", but I'm referring to the FQDN meaning, i.e. the first word after "//").
I need to extract the hostname from the URL, then look it up in a delimited text file or a two-dimensional matrix in memory, where there will be a one-to-one correspondence from the hostname to an integer.
After looking up the corresponding integer, I need to construct a new URL like
https://static.domain2.com/Program.aspx?aff=<integer>
and then redirect to it.
I know there are multiple ways to accomplish this with various web technologies, but I'd like to set it up so that that a techie with minimum skill can add or modify the lookups, i.e. someone can edit a text file with tab-separated values to change the redirection, or something can be easily modified in the Abyss config. I know I could spend a lot of time writing something that does input validation and uses a database, but I don't have the time for that, so I'd like to keep it simple.
Thanks for any hints on what to use to accomplish this.
John