Skip to content

Instantly share code, notes, and snippets.

@reddyweb
Created April 25, 2019 12:01
Show Gist options
  • Select an option

  • Save reddyweb/2c5c76cd3d67229c6746a22b9e29d773 to your computer and use it in GitHub Desktop.

Select an option

Save reddyweb/2c5c76cd3d67229c6746a22b9e29d773 to your computer and use it in GitHub Desktop.
Load files and documents in local development from prod
# Map files directory with produciton
RewriteRule ^sites/default/files/styles(.*)$ http://exampledomain.com/sites/default/files/styles/$1 [R=301,NC,L]
RewriteRule ^sites/default/files(.*)$ http://exampledomain.com/sites/default/files/$1 [R=301,NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment