I am trying to create single redirects for variations of my webpage.
For example:
example.com
www.example.com
https://example.com
Each uses a single redirect to https://www.example.com
I went to Websites & Domains --> Apache & nginx Settings
For "Additional directives for HTTP" I added the following:
So far it is working as all http:// requests are sent to https://www.example.com/
However, what configuration do I need for "Additional directives for HTTPS" so that https://example.com is sent to https://www.example.com?
PS nginx settings are Proxy mode
For example:
example.com
www.example.com
https://example.com
Each uses a single redirect to https://www.example.com
I went to Websites & Domains --> Apache & nginx Settings
For "Additional directives for HTTP" I added the following:
Code:
ServerName example.com
ServerAlias www.example.com
Redirect 301 / https://www.example.com/
So far it is working as all http:// requests are sent to https://www.example.com/
However, what configuration do I need for "Additional directives for HTTPS" so that https://example.com is sent to https://www.example.com?
PS nginx settings are Proxy mode