Is it possible to see if the user requests “example.com/mypage/?” or “example.com/mypage/” ?
I would like to serve different content if the query string is symbol “?” is present in the request. Please note that there is no name or value (e.g. ?name=value) , just the request symbol “?”. A solution in python would be excellent but php is acceptable too.
In PHP you can check if the
REQUEST_URIends in a?. There are three different cases that might be of use to you: