Created
July 15, 2020 15:13
-
-
Save dazecoop/26951bd91f2558fbc438429b8147e6e3 to your computer and use it in GitHub Desktop.
WordPress images on different domain
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
RewriteEngine On | |
RewriteCond %{HTTP_REFERER} !/wp-admin/ [NC] | |
RewriteRule ^(wp-content/uploads/.+?\.(jpe?g|png|gif|svg))$ https://domain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment