Last active
September 20, 2018 07:40
-
-
Save junaidbhura/b14590a3dbfaad09afd3d97f50a35b9e to your computer and use it in GitHub Desktop.
Apache Remote WordPress Images for Local Development
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
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteRule ^wp-content/uploads/(.*)$ https://<bucket-name>.s3.amazonaws.com/uploads/$1 [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment