This project is not covered by Drupal’s security advisory policy.

Deprecated

This module is no longer maintained and has been superseded by the actively maintained Stage File Proxy module.

You are encouraged to migrate to Stage File Proxy, which offers a more robust and modern implementation of file redirection for missing files.
This module will receive no further updates, and all users are advised to switch to Stage File Proxy.

Synopsis

This module helps to prevent the "File not Found"-Error for developing purpose.

It mostly appears when setting up a local instance of a live page via Git. The files within sites/default/files are ingored, so you wont have images on your local setup. Instead of downloading them and fillup your local disk quota you can use this module.

This module gets the files from the Remote-Server for you without downloading. Therefore you just need to configure your Live-URL in the Configuration Form.

Dependencies

to make the module work, you need to add the below block to your sites/default/files/.htaccess.

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /filesnotfoundredirect?file=%{REQUEST_FILENAME} [L,R=301]

Restrictions

Currently working just for .jpg, .png, .pdf, .docx, .doc, .odt and .ods files.

Project information

Releases