MODX Cloud NGINX Rule for ssl and www redirect

Replace "domain.com" with your domain.

This example uses www as the end point, if you prefer non-www just change the two domain variations around in the first if statement.

if ($host = "domain.com") {
    return 301 $scheme://www.domain.com$request_uri;
}

if ($scheme != "https") {
    return 301 https://$host$request_uri;
}

Recent Posts

PDF From Adobe Illustrator not showing a mask transparency right on macOS Preview or Windows? Here is the fix

So you sent a small preview PDF to the client, it looks great. Then you export the Press Quality version and it looks different, why? Let's dig in.

Improving MODX Page Speed for Google

Your website speed is impacting your bottom line , here are a few ways to improve it through browser caching, asynchronous loading of resources and other tips and tricks.

The Status of Liquid Web Cloud Sites Formerly of Rackspace in 2018

We've been a cloudsites customer since our inception, it's had ups and downs, here is what we think about it now.