Created
April 4, 2017 18:36
-
-
Save asifsomy/3682cd0c28cc81c9c1337ecec15c3641 to your computer and use it in GitHub Desktop.
Wordpress: Pull remote images while working in localhost
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteBase /SITENAME.com/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{HTTP_HOST} ^127\.0\.0\.1$ | |
RewriteRule ^wp-content/uploads/(.*)$ http://SITENAME.com/wp-content/uploads/$1 [NC,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment