Default How to redirect a web link

Hi All, I would like your help thinking what is the best way to redirect a browser link to another, let me explain:

If the user is trying to browse to:

I would like to redirect the mobile to (with the same id):

There is a common website that I use all the time, and most of the links are like the first one, than it shows annoying ads, after you close the ad, it will redirect to the second one... I would like to skip it.

how can I do it? I thought about using adaway, but i think it uses DNS level, which doesn't help me.

local proxy maybe? some kind of script in the kernel?

any idea?