Keywords: WordPress + NGINX + SSL - Google Cloud Platform - How to - Other
I have tried to find the answer to this without success.
I have a site hosted using a wordpress install on Nginx in Google Cloud. It is SSL enabled.
This all works fine.
I have an old domain for the site that is currently being url redirected at the DNS level, which is configured at the domain name provider.
This also works fine for domain level redirects but there are pages that used to exist at the old domain which now redirect to the home page of the existing site. This is not what I want, because these pages exist on the new domain as new urls.
I believe that I need to configure the domain to point to the ip address of the hosting and then configure within the nginx config files the redirects eg
redirect all incoming requests that don’t match the new hostname, to the new hostname (this currently happens anyway)
But I also need to do page level url redirects as the old page urls and new ones are different.
I’m not sure how to do this, I am more familiar with configuring apache and using mod_rewrite or 301 redirects in an htaccess file. I’m not even sure which config file to edit.
Any links to documentation would be much appreciated.