First of all a big thanks to the bedrock team. I use bedrock boilerplage for all my WP projects and no issues so far. This boilerplate solved several of our past issues.
Now, I need to setup bedrock in a sub-directory and get accessed through a reverse proxy setup.
Please see below the setup as per my REQUIREMENTS:
https://www.domain.com/blog/ -> Reverse Proxy to the below WP installation
Wordpress Installation (Bedrock)
Wordpress Project Root
Document root in Nginx
Physical directory (blog) under web
Created the below symlinks in the above folder (blog)
ln -s …/wp/ wp
ln -s …/app/ app
ln -s …/wp-config.php wp-config.php
ln -s …/index.php index.php
REST API works fine
Able to login in the WP admin and create/edit pages and posts without any issues.
However, other than the blog home page, rest of the pages and posts do not work and getting redirected as shown below, when accessed through the main domain (www.domain.com)
Note the leading slash of the page-slug/permalink is removed and redirected as /blogpage-x or /bloghello-world and resulting 404 error in the main domain.
I have deactivated yoast seo plugin.
Not sure what I am missing. Should I change any of my bedrock configs?
Please help. Thanks in advance,