Q: redirect all http to https
I am using OS X Server 5.0.15 with OS X 10.10.5.
I have 2 domains pointing to IP address of my OS X Server machine using DNS.
users.newsite.com and users.oldsite.com
The domain setup for the OS X Server machine is users.newwebsite.com
This is setup as the Server Website and I also have a Server Website (SSL) setup as well.
I have a redirect setup for "Server Website" to redirect to Server Website (SSL)
This part is working properly.
The problem is with the second domain. If people type in users.oldwebsite.com they get an error message that the connection is not secure. It appears the browser is trying to redirect http://users.oldsite.com to https://users.oldsite.com.
I need any calls to http://users.oldsite.com to redirect to https://users.newsite.com
Or really anything beginning with http://users. should redirect to https://users.newsite.com
Is this possible using regex? If so, what would the expressions look like?
OS X Yosemite (10.10.5)
Posted on Jun 1, 2016 10:43 AM