Skip to content

Instantly share code, notes, and snippets.

@parsafatehi
Last active August 16, 2021 17:11
Show Gist options
  • Select an option

  • Save parsafatehi/2f41bb74df7e57ae7b1f64374fd1b744 to your computer and use it in GitHub Desktop.

Select an option

Save parsafatehi/2f41bb74df7e57ae7b1f64374fd1b744 to your computer and use it in GitHub Desktop.

Revisions

  1. parsafatehi renamed this gist Aug 16, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. parsafatehi created this gist Aug 16, 2021.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original 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/(.*)$ http://REMOTE_DOMAIN.com/wp-content/uploads/$1 redirect;
    }
    }