答案 0 :(得分:0)
$ myTotalRedirectIRl [] = $ _SERVER [' HTTPS_REFERER'];
将大写变量设置为所有页面
的print_r($ myTotalRedirectUrl);
答案 1 :(得分:0)
每当页面重定向时,在每个页面中获取页面的URL并使用javascript存储在浏览器内部存储中
以便您以后可以访问
<script>
if(typeof(Storage)!=="undefined")
{
var URL = window.location.href;
// Store URL in page 1
localStorage.setItem("page1", URL);
}
</script>
<script>
if(typeof(Storage)!=="undefined")
{
var URL = window.location.href;
// Store URL in page 2
localStorage.setItem("page2", URL);
}
</script>
<script>
if(typeof(Storage)!=="undefined")
{
// Retrieve in page 3
document.getElementById("result1").innerHTML = localStorage.getItem("page1");
document.getElementById("result2").innerHTML = localStorage.getItem("page2");
}
</script>