I would like to use a reverse proxy (NGINX) to redirect traffic from let's call it SUBDOMAIN1.example.com/EXAMPLEPAGE
to SUBDOMAIN2.example.com/EXAMPLEPAGE
Currently, I rank position 1-2 for most keywords, but the name of the subdomain does not describe the site accurately anymore.
My question is simple. If I keep the same DNS for SUBDOMAIN1 and simply change the server to SUBDOMAIN2, but my reverse proxy redirects the traffic to the new site/subdomain, will this affect my ranking? Will my site still show up in the search results as before? I would do something like this
server {
listen 80;
listen [::]:80;
server_name SUBDOMAIN1.example.com/ ;
location /EXAMPLEPAGE {
return 302 https://www.SUBDOMAIN2.example.com/EXAMPLEPAGE;
}
}