How to find referrer URL while using htaccess 404 redirect?

妖精的绣舞 提交于 2019-12-01 22:59:18

Remove http:// from 404 handler and have it like this:

ErrorDocument 404 /404.php

The URL that is causing 404 is available to you in 404.php using:

$_SERVER["REQUEST_URI"]

When http:// ise used in 404 handler server performs full redirection and you loose original REQUEST_URI.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!