【发布时间】:2015-01-03 00:18:52
【问题描述】:
我的 IIS 将 http://example.com/wiki/Main(重写前的 URL)重写为 http://example.com/w/index.php?title=Main(重写后的 URL)。
在 index.php 中,$_SERVER['REQUEST_URI'] 返回wiki/Main。
我使用 Windows 2008 服务器、IIS 7、PHP 5.4。重写工具是 IIS URL Rewrite Module 2。我是 PHP、IIS 和网站方面的新手。
REQUEST_URI是指重写前还是重写后的url?
如果REQUEST_URI是重写前的url,如何获取重写后的url?
【问题讨论】:
标签: php iis url-rewriting