How can I check if the $_SERVER['REQUEST_URI'] is empty (i.e. user visited domain.com/), but leave an exception for if there is a $_GET in the URL (domain.com/?a=1)
How can I check if the $_SERVER[‘REQUEST_URI’] is empty (i.e. user visited domain.com/ ),
Share
You can use
parse_urlto achieve this