public static function getRequestUriWithoutQueryString() { if (seo42::isSubDirInstall()) { // remove subdir from request uri $requestUri = seo42_utils::trimSubDir($_SERVER['REQUEST_URI']); } else { $requestUri = $_SERVER['REQUEST_URI']; } return ltrim(strtok($requestUri, '?'), '/'); }