Skip to content

Instantly share code, notes, and snippets.

@BeFiveINFO
Created August 5, 2017 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeFiveINFO/1777f8cb562c94628dc45b510a869e51 to your computer and use it in GitHub Desktop.
Save BeFiveINFO/1777f8cb562c94628dc45b510a869e51 to your computer and use it in GitHub Desktop.
# any external incoming request to images hosted are redirected to other server holding dummy of the original content
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?thememountain\.com/ [NC]
RewriteRule (.*)\.(jpe?g|gif|ogv|webm|bmp|png|mp4|svg|css)$ http://placeholders.thememountain.com/wordpress/$1.$2 [NC,R,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment