我创建了两个网站( http://localhost/webone, http://localhost/webtwo).
第二个网站具有如下网址: http://localhost/webtwo/webone (使用ProxyPass和ProxyPassReverse)
如果我们转到上面的URL,上面就将会显示网络内容。 现在,如果有人访问一个Web,那么我想捕获用户访问URL。(可以是http:// localhost / webone或http:// localhost / webtwo / webone) 我的问题是: 如果有人从http:// localhost / webtwo / webone URL访问第二个网站。 然后,如果我执行以下代码,它将返回http:// localhost / webone。.
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
但是浏览器显示的URL是http://localhost/webtwo/webone. 有人可以建议一种捕获URL的方法吗?http://localhost/webtwo/webone