Welcome! Log In Create A New Profile

Advanced

Keywords in 404.php

June 06, 2011 08:32AM
In apache, I used to handle 404.php by $url = getenv("REQUEST_URI"); to get the requested page. Thus, if someone redirected to 404.php from /test.html, I had a php string containing "test.hetml". This is indeed due to the mechanism of redirecting by "ErrorDocument 404 /404.php" in .htaccess

In Nginx, I think the mechanism for "error_page 404 /404.php;" is different. How I can get the requested page in 404.php ?
Subject Author Posted

Keywords in 404.php

etrader June 06, 2011 08:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 247
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready