Last active
March 12, 2020 17:36
-
-
Save fabrizim/74c1783ad0d49e357788061b040d7e0e to your computer and use it in GitHub Desktop.
wp-content/uploads filler for staging environments
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 / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp\-content\/uploads(.*)$ https://production-domain.com/wp-content/uploads$1 [L,R=301] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp\-content\/blogs(.*)$ https://production-domain.com/wp-content/blogs$1 [L,R=301] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^wp\-content\/sites(.*)$ https://production-domain.com/wp-content/sites$1 [L,R=301] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment