ok script_name doesnt work for the uri so swithc back to uri and strip off query string