Created
May 18, 2025 06:41
-
-
Save DKudleichuk/8db1713f1012cb51ad8cd6986a2f3e2e to your computer and use it in GitHub Desktop.
NGINX Rewrite Rule for wp-content/uploads
This file contains hidden or 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
location ~ ^/wp-content/uploads/(.*) { | |
rewrite ^/wp-content/uploads/(.*)$ https://PROD-DOMAIN.com/wp-content/uploads/$1 permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment