Last active
October 23, 2020 17:13
-
-
Save themightymo/ccefb4c75a78d764bbff34d61a56143a to your computer and use it in GitHub Desktop.
Redirect WordPress "uploads" folder to S3 bucket via .htaccess
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
# BEGIN Utilize S3 bucket rather than localhost for "uploads" folder - Via https://tinyurl.com/s3redirect | |
RewriteRule ^wp-content/uploads/(.*)$ https://your_bucket_name.s3.amazonaws.com/wp-content/uploads/$1 [R,L] | |
# END Utilize S3 bucket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment