$link = str_replace('content/', '', $_SERVER['REQUEST_URI']); $linkstring = str_replace(' ','',$link );