Guest Posted February 25, 2016 Report Posted February 25, 2016 Hello, i have apMagicGeo plugin installed in my revive adserver configuration.I use apMagicGeo to serve a list of flags (images) inside a folder /flags/ through this code: https://www.MYSITE.org/flags/{geo.country_code.enc}.pngThe problem here is that the above code render the flags in uppercase - ex: https://www.MYSITE.org/flags/IT.png (if browsed from Italy) - and all the flags inside the folder are lowercase, so i need to redirect the uppercase to lowercase, ending with an unnecessary 301 redirect.I wonder if there is a method to render such images called by the {geo.country_code.enc} directly in lowercase, bypassing the 301 redirect.Thanks. Quote
Ian Posted February 25, 2016 Report Posted February 25, 2016 Hi! Do you use Apache ? cheers, Ian Quote
Matteo Beccati Posted February 25, 2016 Report Posted February 25, 2016 I guess you could use some javascript in your HTML banner to convert upper to lowercase. Quote
Ian Posted February 25, 2016 Report Posted February 25, 2016 Or just rename all the PNG files in that folder.Go in to the folder and :ls | while read upName; do loName=`echo "${upName}" | tr '[:upper:]' '[:lower:]'`; mv "$upName" "$loName"; done Matteo Beccati 1 Quote
Guest Posted February 25, 2016 Report Posted February 25, 2016 Thanks Ian (and Matteo), i think that i will end to rename all the png inside the folder .. is the easier solution.Regards!Jeff Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.