Created
August 31, 2017 09:31
-
-
Save Jursdotme/737f9a3735fa25900b17f2d5c28cb6a6 to your computer and use it in GitHub Desktop.
Use production media files on local development wordpress
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 | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/?.*$ | |
RewriteRule ^(.*)$ http://ntf.dk/$1 [QSA,L] | |
</IfModule> |
Must be inserted before # BEGIN WordPress
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://css-tricks.com/develop-locally-use-images-production/