我在 IIS 上使用 Iconic 的IIRF URL 重写引擎,“花哨”的 URL 是这样的:
http://some-website.com/some-function/418/some-keyword-rich-filename.html
此示例 URL 对应于:
http://some-website.com/some-function.asp?SOME-ID=418
现在在 some-function.asp 文件中,我需要知道浏览器请求的页面。我浏览了所有 IIS 变量,但无法/some-function/418/some-keyword-rich-filename.html
在其中任何一个变量中找到值。
作为旁注,我需要此信息将 301 重定向发送到浏览器。例如,如果浏览器请求:
http://some-website.com/some-function/418/index.html
我首先需要将浏览器发送到:
http://some-website.com/some-function/418/some-keyword-rich-filename.html
这就是为什么我需要原始网址进行比较。