fixed redirect issue with SITE_URL var