Last active
July 7, 2022 19:17
-
-
Save robspangler/0e1db7fdec0a0bd54a4ec79b3fd53a56 to your computer and use it in GitHub Desktop.
Local to Live WordPress Upload Redirect
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
#DEV REWRITE | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.+\.)(gif|jpe?g|png|webp)$ https://www.livedomain.com/$1$2 [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment