Created
September 21, 2020 22:16
-
-
Save mcascardi/e4358869b179fe877f2cc79c28642eaf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Nginx example configuration, added inside the server {} block | |
# Uploads redirected to the hostname of your production server | |
location /wp-content/uploads/ { | |
try_files $uri @uploads-redirect; | |
} | |
location @uploads-redirect { | |
expires 30s; | |
return 301 https://{HOSTNAME}/$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment