Created
May 14, 2019 12:40
-
-
Save laurelstreng/b1e3baddd95e00f395c7be24ae982d39 to your computer and use it in GitHub Desktop.
Retrieve images from Production if not found locally
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
# Retrieve images from Production if not found locally | |
RewriteCond %{REQUEST_URI} ^/path/to/files/[^\/]*/?.*$ | |
RewriteCond %{HTTP_HOST} !^www\.your-domain\.com$ [NC] | |
RewriteCond %{REQUEST_FILENAME} !-f [NC] | |
RewriteRule ^(.*)$ https://www.your-domain.com/$1 [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment