Forum Moderators: coopster
Option 1) Set REQUEST_URI value via a URL parameter on each HTTP request.
Option 2) Set REQUEST_URI value via a request header value on each HTTP request.
Unfortunately, I need to run a PHP application under IIS and the lack of this PHP var is the only barrier. Since my web server is missing that variable, I figure that I can manually set it.
I am not a PHP developer, but I don't think that doing this would be difficult.
If anyone could nudge me in the right direction, I would appreciate it very much.
Thank you,
Jason
The reason is that IIS does not transmit the original (pre-written) URL, it only sets the URL after it is written. Since the PHP app requires the original URL (as seen in the browser's address bar), the PHP have no way of knowing this.
This is the reason I wish to pass the pre-written URL via a URL param or via a request header.
Again, any thoughts or comments are greatly appreciated,
Jason
Yes, option #1 was what came to mind first. After looking at the applications PHP code, I figured that option #2 would be my best route because I wouldn't have to change the application code.
BUT looking back though, option #1 would have been easier. Option #2 involved that I create an ISAPI filter that adds a request header containing the REQUEST_URI string. I called it ORIGINAL_URL, then assign it back to PHP's REQUEST_URI with each HTTP request.
Best Regards,
Jason