I printed $_SERVER, and I found out that $_SERVER['REDIRECT_URL'] vs $_SERVER['REQUEST_URI'] both have same values. What’s the difference between the two?
I printed $_SERVER, and I found out that $ _SERVER[‘REDIRECT_URL’] vs $_SERVER[‘REQUEST_URI’] both have
Share
REQUEST_URI is the requested URI path and query as used in the HTTP request line. REDIRECT_URL is created by Apache when an internal redirect happens:
Note that REDIRECT_URL does only contain the URI path.