Created
February 5, 2020 18:27
-
-
Save phillip-boombox/aa773306c39636fc7f0fb6623b21aadf to your computer and use it in GitHub Desktop.
Download images from remote WordPress website
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
# Pull images from remote site instead of local | |
# only if file requested is from the uploads folder | |
# and if the file does not exist locally | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(.*)$ https://SOMESITE.com/$1 [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment