Nginx

Nginx (pronounced "engine x"[8] /ˌɛndʒɪnˈɛks/ EN-jin-EKS) is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. The software was created by Igor Sysoev and publicly released in 2004. Nginx is free and open-source software, released under the terms of the 2-clause BSD license. A large fraction of web servers use Nginx, often as a load balancer.

Static redirection

Inside a server block:

# use ~* to match a string inside a hostname
if ($host ~* 'living') {
  	# temporary redirect
	rewrite  ^/rewrite-test$  $scheme://$host/rewrite-test.html  redirect;
  	# permanent redirect
	rewrite ^/wp-content/uploads/2020/06/contact-us-button.png$ $scheme://$host/uploads/sites/3/2022/11/contact-us-button.png permanent;
}