Hi!
I have a setup, where through rewrite rules on "/" context level I direct [almost] everything to index.php file, where I process the "route" in URL, that is "/fftracker/search/" for example will be processed by the main PHP script and content will be shown based on the logic designed specifically for "fftracker" and "search" nodes.
I have a route for HTTP error pages as well, looking like "/httperror/404/" as example, and I want custom error pages load those. But right now, when I setup 404 (again, as exmaple) error page to "/httperror/404" it looks like server is opening index.php without the original URL provided to it in any way, thus it displays a different page, not the one that is supposed to be shown as 404. As a visual example: https://88.85.67.178/.well-known/security6.txt should look like https://88.85.67.178/httperror/404, but in fact looks like a 400 error page (as per index.php's logic). I'm using IP for the link, since I am in process of moving from a Windows VPS with Apache to Linux with OLS, so domain has not been linked to IP yet.
How can I make it so proper error page is displayed? Maybe there is some $_SERVER variable, that OLS passes in case of such errors, that I can leverage? Or maybe I need to adjust something in server setup?
Thank you.
I have a setup, where through rewrite rules on "/" context level I direct [almost] everything to index.php file, where I process the "route" in URL, that is "/fftracker/search/" for example will be processed by the main PHP script and content will be shown based on the logic designed specifically for "fftracker" and "search" nodes.
I have a route for HTTP error pages as well, looking like "/httperror/404/" as example, and I want custom error pages load those. But right now, when I setup 404 (again, as exmaple) error page to "/httperror/404" it looks like server is opening index.php without the original URL provided to it in any way, thus it displays a different page, not the one that is supposed to be shown as 404. As a visual example: https://88.85.67.178/.well-known/security6.txt should look like https://88.85.67.178/httperror/404, but in fact looks like a 400 error page (as per index.php's logic). I'm using IP for the link, since I am in process of moving from a Windows VPS with Apache to Linux with OLS, so domain has not been linked to IP yet.
How can I make it so proper error page is displayed? Maybe there is some $_SERVER variable, that OLS passes in case of such errors, that I can leverage? Or maybe I need to adjust something in server setup?
Thank you.