added absolute/relative url support for subdomains