Use hostname rewriting and current suffix to set href accurately
Add log4j log object in case needed for script debugging