Bedrock Boilerplate under a sub-directory and access through a reverse proxy setup
By disabling canonical redirection, the issue solved remove_action(‘template_redirect’, ‘redirect_canonical’); Thanks to Mahesh Waghmare. https://maheshwaghmare.com/avoid-wordpress-canonical-redirection/