[wp-hackers] ISAPI_Rewrite 3.0 mod_rewrite compatibility
computerguru at neosmart.net
Mon Sep 17 20:12:33 GMT 2007
Yes, I just checked a couple of days ago with the latest SVN.
Request_URI will still return index.php, which is script_name...
This is the most reliable workaround I've seen. It's part of my "Request_URI
for Windows" package as a fallback if ISAPI_Rewrite isn't installed:
$_SERVER['HTTP_REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
$_SERVER['HTTP_REQUEST_URI'] = $_SERVER['PHP_SELF'];
$_SERVER['HTTP_REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_REQUEST_URI'];
Only thing is, if anyone is using a hack (like mine) to set REQUEST_URI to
the correct value, it'll overwrite it.
On 9/17/07, Mark Jaquith <mark.wordpress at txfx.net> wrote:
> On Sep 15, 2007, at 7:09 PM, Computer Guru wrote:
> > Note that the stupid Windows/IIS request_uri bug still exists, you'll
> > need to use this IIS hack  to make WP correctly grab the
> > request_uri value.
> Is that true, even with WP 2.3 beta code?
> Mark Jaquith
> Covered Web Services
> WordPress Ninja @ b5media Inc
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers