Query Parameters in Filename

Author Message
Henry 09/03/2012 03:10 pm
Hi,

Lets say I have 2 pages one with a link to
http://s3.amazonaws.com/xxx/144a8d8073ffac626038bb5bde706d24_1.jpg?AWSAccessKeyId=AKIAJQJ7TPUNH4FUNP6A&Expires=1346700720&Signature=M00upXaGquLgtfuKO6QQighG4Ko%3D

And the other with a link to
http://s3.amazonaws.com/xxx/144a8d8073ffac626038bb5bde706d24_1.jpg?AWSAccessKeyId=AKIAJQJ7TPUNH4FUNP6A&Expires=1346700763&Signature=WYORLQpX%2F72dXPfuAT3L5de6+kk%3D

Is there a way such that when downloading the file, it downloads as 144a8d8073ffac626038bb5bde706d24_1.jpg and all future URLs with references to 144a8d8073ffac626038bb5bde706d24_1.jpg* will be referred to as 144a8d8073ffac626038bb5bde706d24_1.jpg.

Thus, after parsing all the pages, only 1 copy of http://s3.amazonaws.com/xxx/144a8d8073ffac626038bb5bde706d24_1.jpg will exist.

Thanks
Oleg Chernavin 09/04/2012 06:06 am
Yes, this can be done using the URL Substitutes feature - Project Properties dialog - Parsing section.

Add a new rule:

URL:
*
Replace:
.jpg?AWSAccessKeyId=*
With:
.jpg
Apply to:
Filenames

Best regards,
Oleg Chernavin
MP Staff