Created
July 19, 2021 06:14
-
-
Save charliesjc/569b2a1a02da3ce2350f092db5ff833b to your computer and use it in GitHub Desktop.
Redirect Wordpress uploads folder to a different domain. (Very useful on local dev environment to avoid having to download the entire uploads folder)
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
# Redirect Wordpress uploads folder to a different domain. | |
# (Very useful on local dev environment to avoid having to download the entire uploads folder) | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteRule ^(.*)$ http://domain.com/$1 [QSA,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment