Created
November 16, 2015 22:34
-
-
Save doginthehat/8e30a211a5e79ea7f05b to your computer and use it in GitHub Desktop.
Fix missing images
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
# For safe keeping | |
# From https://journalxtra.com/web-development/fix-missing-images-size-fits-replacement/ | |
# Clever trick if you're working off a local dev copy and don't want to download all the media image to work | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} \.(gif|jpg|jpeg|png)$ | |
RewriteRule .* directory-path/replacement-image.jpg [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment