Skip to content

Instantly share code, notes, and snippets.

@thetwopct
Created April 9, 2019 13:05
Show Gist options
  • Save thetwopct/b4e4b962e4d315a6ff47b45e83cdc13b to your computer and use it in GitHub Desktop.
Save thetwopct/b4e4b962e4d315a6ff47b45e83cdc13b to your computer and use it in GitHub Desktop.
Redirect images to production server
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$
RewriteRule ^(.*)$ https://productionsite.com/$1 [QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment