The URL is now being detected with SERVER_NAME
Smarter widont method