Last active
April 19, 2023 06:39
-
-
Save zanematthew/0ba700c2b0e344fc94276d7b247bd1ed to your computer and use it in GitHub Desktop.
Revisions
-
Zane Matthew revised this gist
Aug 29, 2016 . No changes.There are no files selected for viewing
-
Zane Matthew revised this gist
Aug 29, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,9 @@ #### # # Note this file should be place in: # cd /etc/nginx/custom-sites/ # Then be sure to restart nginx: # $ sudo service nginx restart location ~ ^/wp-content/uploads/(.*) { if (!-f $request_filename) { rewrite ^/wp-content/uploads/(.*)$ https://SOME-OTHER-URL-HERE.com/$1 redirect; -
Zane Matthew created this gist
Aug 18, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ location ~ ^/wp-content/uploads/(.*) { if (!-f $request_filename) { rewrite ^/wp-content/uploads/(.*)$ https://SOME-OTHER-URL-HERE.com/$1 redirect; } }