IIS w/ PHP Request_URI

Nov 24, 2009 at 9:13 PM
Edited Nov 24, 2009 at 10:47 PM

I am having a hard time getting the proper results from a PHP "$_SERVER['REQUEST_URI']" request.
IE: If my url is: http://localhost/en/home/view
REQUEST_URI will show "index.php?lang=en&page=home&action=view" rather than the expected "en/page/view"

I installed ISAPI ReWrite (sorry) on another test machine, and it did the same thing. However, this link below is a script that works only with Isapi Rewrite and fixes that problem.

It's an IIS problem, but - I really need REQUEST_URI to function properly.
Is there a solution to this with IIRF? Am I missing something simple?

Not as Important and maybe related to the problem above!

After implemting IIRF on a IIS6 test server, I notice that the IIS logs ignore the clean url structure.
IE: If my url is: http://localhost/en/home/view
IIS log is showing the "real URL" which is http://localhost/index.php?lang=en&page=home&action=view

Am I missing something with IIS, or IIRF - or is this simply the way it is?


Nov 24, 2009 at 11:10 PM

After going through several of your other posts, I found one that addressed this issue.

The solution was in the "U" flag :)  As soon as I added that flag the REQUEST_URI started working the way I wanted it to.

Nov 25, 2009 at 3:40 AM

Glad you figured it out!