Answer the question
In order to leave comments, you need to log in
How to redirect an address to (return 301 https ) - except for *.subdomains?
Can you please tell me how to redirect the site to https , but only for the main domain example.com , without auto-subdomains like *.example.com ?
Now Nginx has this setting:
listen 123.12.12.123:80;
return 301 https://$host$request_uri;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question