Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Tweeted twitter.com/#!/StackDrupal/status/292210642037927937
Source Link

How to redirect all images in the files folder to a default file?

Because we work with DTAP environments, our developers work on their own laptops. To get a good view of the live environment, we copy the PROD database and the files to our own laptop. However, this takes up a lot of space because of all the files directories.

What I'd love to have is a simple .htaccess or Apache redirect rule that points all files in the files directory to one default image, so that we don't have to copy the files directory contents (which can be gigabytes sometimes).

There is one exception though for JS/CSS files and files in the files/styles directory. Those callbacks must keep working.

Any thoughts on if and how this would be achievable?