Created
May 31, 2016 21:39
-
-
Save GhazanfarMir/c3bccc07aa603434dcd52cfebf7ff3f3 to your computer and use it in GitHub Desktop.
WordPress Serve Media Files stored in different server
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 /wp-content/uploads/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*) http://yourlivesite.com/wp-content/uploads/$1 [L,P] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment