I have a multilingual website that used to be a Wordpress installation. As a result paths to specific files are built likes this: wp-content/uploads/2013/11/myfile.pdf. My goal is to redirect them to sites/default/files/pdf/myfile.pdf. However, whatever configuration I make, the i18n prefixes cram theirselves in there which results in a broken link after all.

This is my setup:

Pattern:
wp-content/uploads/2013/11/*
wp-content/uploads/2013/12/*

Target:
sites/default/files/pdf/*

Status code: 301

(None of the extra options checked)

I guess this module is not equiped yet with a functionality to deal with language prefixes, hence the feature request status. Correct me if I should be mistaken here.

Comments

dshields’s picture

Status: Active » Needs review
StatusFileSize
new513 bytes

Using this patch, I'm able to use absolute paths in my target field.
Maybe this will help?

prajaankit’s picture

that the correct thing.

ykyuen’s picture

#2 works. thanks.