Support » Installation » Incorrect $_Server[‘REQUEST_URI’] on IIS7 FastCGI

Incorrect $_Server[‘REQUEST_URI’] on IIS7 FastCGI

Viewing 1 replies (of 1 total)
  • Arrgh! Windows!

    Search google and you’ll find several work-arounds for getting $_SERVER[REQUEST_URI] on IIS.

    Also, sometimes, the server throws an empty value:

    if (!isset($_SERVER['REQUEST_URI'])) {
    	$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1);
    	if (isset($_SERVER['QUERY_STRING']) AND $_SERVER['QUERY_STRING'] != '') {
Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect $_Server[‘REQUEST_URI’] on IIS7 FastCGI’ is closed to new replies.