Domain is no longer in use, and I need to make redirects to correct website, but only for specific urls.
server {
listen 80;
server_name example.org;
location ~ ^/(page|show) {
return 301 http://new-domain.org/$request_uri;
}
location = / {
return 301 http://new-domain.org/;
}
return 410;
}
Only main page and urls matching the pattern will be redirected, everything else should throw 410 HTTP code
but config above is not working, currently everything is throwing 410...