[vhost] change the way permalinks are determinated