Request string without GET arguments [duplicate]
Edit: @T.Todua provided a newer answer to this question using parse_url. (please upvote that answer so it can be more visible). Edit2: Someone has been spamming and editing about extracting scheme, so I’ve added that at the bottom. parse_url solution The simplest solution would be: echo parse_url($_SERVER[“REQUEST_URI”], PHP_URL_PATH); Parse_url is a built-in php function, who’s … Read more