Added support for webPhar redirect function