2

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;
    }
}

2 Answers 2

1

If your redirect returns a 301 http response for every URL(mean that your URL rewrite rule is done without errors) your ranking will be moved for the new URLs.(But you won't expect exactly the same rankings for every query and you might see a change).

2
-1

Found an article on your question - https://support.zendesk.com/hc/en-us/articles/4408845973914-Renaming-your-subdomain

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Oct 25, 2022 at 11:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.