Redirect File
Categories
Component ID
2361011
Component name
Redirect File
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
3215
Component created
Component changed
Component body
This module provides support for redirecting public file assets.
The following problem exists with the redirect module:
- Create a redirect from /sites/default/files/test.pdf to http://google.com
- If the file exists, the redirect will not work.
- If the file does not exist, the redirect will work.
The solution to this problem is to simply move test.pdf when a redirect
from /sites/default/files/test.pdf is created. This module adds a new
'Rename existing source file' checkbox on the 'Create redirect' form, which
will perform this file move when a redirect is created for a file asset
residing in the public files directory.
Dependencies
The development of this module was done as part of the U.S. Department of Justice justice.gov project.
