Overiding wp_sanitize_redirect for | character

There was another solution. I looked here:

https://www.w3schools.com/tags/ref_urlencode.asp

And it stated the encoded value for a | character was %7C so I was able to use that in my redirection URLs.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)