Hello My question is probably and painfully difficult to understand, but under NGINX, I would like to know if you can create 301 redirects in https to another domain without the ssl? Mz
It does not matter for a 301 redirect if the target domain uses http or https, you can specify that in the URL of the target in the rewrite rule. Example: rewrite ^/directory/(.*)$ http://newdomain.tld/$1 permanent;
The first path is the source (old), so it's a path of the local site where you add the rule in and not the new domain. So using https:// in the first part will not work. But if you have several domains pointing to this website and the rewrite shall happen only for one specific domain, then you can e.g. limit the rewrite to that domain by using an if statement: http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if