1

我需要能够读取来自裸域重定向的请求标头:

http://mydomain.com

http://www.mydomain.com/index.html

我需要index.html能够解析任何原始请求pathqueries我该怎么做?

例如

从裸域:http://mydomain.com/abchttp://www.mydomain.com/index.html然后 index.html 会得到abc路径请求。

问题是如何能够做到这一点?

一个类似的问题: Using DNS to redirect to another URL with a path

4

1 回答 1

1

使用文档属性检查和重新编辑其他问题 使用导航器绳索

获取referrer use = document.referrerdocument.URL

看:http ://www.w3schools.com/jsref/dom_obj_document.asp

在 apache 中,最好的解决方案是使用 .httaccess 进行控制

于 2013-11-12T19:22:09.543 回答