-
This WordPress snippet is a lightweight plugin designed to correct URL generation issues when the site is running behind a proxy. It modifies server variables during the init hook, specifically overriding $_SERVER['HTTP_HOST'] and prepending /ctl to $_SERVER['REQUEST_URI'] in the admin area, ensuring functions like add_query_arg() produce accurate links despite altered request paths or host headers introduced by the proxy setup.
Please sign in to comment