{"id":1046,"date":"2022-04-10T11:16:17","date_gmt":"2022-04-10T05:46:17","guid":{"rendered":"https:\/\/vining.in\/blog\/?p=1046"},"modified":"2022-04-10T11:21:36","modified_gmt":"2022-04-10T05:51:36","slug":"_serverrequest_uri-not-working-iis","status":"publish","type":"post","link":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/","title":{"rendered":"$_SERVER[&#8216;REQUEST_URI&#8217;] not working IIS"},"content":{"rendered":"<p>Undefined index: REQUEST_URI Windows Server IIS for PHP<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">if (!isset($_SERVER['REQUEST_URI']))\r\n{\r\n       $_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );\r\n       if (isset($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'].='\/'.$_SERVER['QUERY_STRING']; }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Undefined index: REQUEST_URI Windows Server IIS for PHP if (!isset($_SERVER[&#8216;REQUEST_URI&#8217;])) { $_SERVER[&#8216;REQUEST_URI&#8217;] = substr($_SERVER[&#8216;PHP_SELF&#8217;],1 ); if (isset($_SERVER[&#8216;QUERY_STRING&#8217;])) { $_SERVER[&#8216;REQUEST_URI&#8217;].=&#8217;\/&#8217;.$_SERVER[&#8216;QUERY_STRING&#8217;]; } } &nbsp; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,14],"tags":[],"class_list":["post-1046","post","type-post","status-publish","format-standard","hentry","category-iis-windows-server","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>$_SERVER[&#039;REQUEST_URI&#039;] not working IIS - Programmer Code<\/title>\n<meta name=\"description\" content=\"Undefined index: REQUEST_URI Windows Server IIS for PHP\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"$_SERVER[&#039;REQUEST_URI&#039;] not working IIS - Programmer Code\" \/>\n<meta property=\"og:description\" content=\"Undefined index: REQUEST_URI Windows Server IIS for PHP\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/\" \/>\n<meta property=\"og:site_name\" content=\"Programmer Code\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vining.in\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-10T05:46:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-10T05:51:36+00:00\" \/>\n<meta name=\"author\" content=\"codeadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"codeadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/\",\"url\":\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/\",\"name\":\"$_SERVER['REQUEST_URI'] not working IIS - Programmer Code\",\"isPartOf\":{\"@id\":\"https:\/\/vining.in\/blog\/#website\"},\"datePublished\":\"2022-04-10T05:46:17+00:00\",\"dateModified\":\"2022-04-10T05:51:36+00:00\",\"author\":{\"@id\":\"https:\/\/vining.in\/blog\/#\/schema\/person\/cda9f07adf3479ac270e2320a914552e\"},\"description\":\"Undefined index: REQUEST_URI Windows Server IIS for PHP\",\"breadcrumb\":{\"@id\":\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vining.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"$_SERVER[&#8216;REQUEST_URI&#8217;] not working IIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/vining.in\/blog\/#website\",\"url\":\"https:\/\/vining.in\/blog\/\",\"name\":\"Programmer Code\",\"description\":\"- Where Developers Learn, Share, &amp; Build Careers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/vining.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/vining.in\/blog\/#\/schema\/person\/cda9f07adf3479ac270e2320a914552e\",\"name\":\"codeadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vining.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/770f5bb2b95d41f98f29e7251fb1873b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/770f5bb2b95d41f98f29e7251fb1873b?s=96&d=mm&r=g\",\"caption\":\"codeadmin\"},\"url\":\"https:\/\/vining.in\/blog\/author\/codeadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"$_SERVER['REQUEST_URI'] not working IIS - Programmer Code","description":"Undefined index: REQUEST_URI Windows Server IIS for PHP","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/","og_locale":"en_US","og_type":"article","og_title":"$_SERVER['REQUEST_URI'] not working IIS - Programmer Code","og_description":"Undefined index: REQUEST_URI Windows Server IIS for PHP","og_url":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/","og_site_name":"Programmer Code","article_publisher":"https:\/\/www.facebook.com\/vining.in","article_published_time":"2022-04-10T05:46:17+00:00","article_modified_time":"2022-04-10T05:51:36+00:00","author":"codeadmin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"codeadmin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/","url":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/","name":"$_SERVER['REQUEST_URI'] not working IIS - Programmer Code","isPartOf":{"@id":"https:\/\/vining.in\/blog\/#website"},"datePublished":"2022-04-10T05:46:17+00:00","dateModified":"2022-04-10T05:51:36+00:00","author":{"@id":"https:\/\/vining.in\/blog\/#\/schema\/person\/cda9f07adf3479ac270e2320a914552e"},"description":"Undefined index: REQUEST_URI Windows Server IIS for PHP","breadcrumb":{"@id":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vining.in\/blog\/_serverrequest_uri-not-working-iis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vining.in\/blog\/"},{"@type":"ListItem","position":2,"name":"$_SERVER[&#8216;REQUEST_URI&#8217;] not working IIS"}]},{"@type":"WebSite","@id":"https:\/\/vining.in\/blog\/#website","url":"https:\/\/vining.in\/blog\/","name":"Programmer Code","description":"- Where Developers Learn, Share, &amp; Build Careers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vining.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/vining.in\/blog\/#\/schema\/person\/cda9f07adf3479ac270e2320a914552e","name":"codeadmin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vining.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/770f5bb2b95d41f98f29e7251fb1873b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/770f5bb2b95d41f98f29e7251fb1873b?s=96&d=mm&r=g","caption":"codeadmin"},"url":"https:\/\/vining.in\/blog\/author\/codeadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/posts\/1046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/comments?post=1046"}],"version-history":[{"count":1,"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/posts\/1046\/revisions"}],"predecessor-version":[{"id":1047,"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/posts\/1046\/revisions\/1047"}],"wp:attachment":[{"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/media?parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/categories?post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vining.in\/blog\/wp-json\/wp\/v2\/tags?post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}