We have WordPress installed in a folder titled "web" so the WordPress address and Site address under General Settings is different. As a result, the preview and preview changes functions do not work.
I found a solution (https://wordpress.org/support/topic/pagepost-preview-not-working?replies=20) by adding "/index.php/" directly after the domain name, as seen below, but would prefer to have something to enter in to functions.php as a hard coded work around. However, I do not know where to start or if what I am suggesting is even possible.
Problem URL
Manually entered "fix"
http://www.mydomain.com/index.php/about/?preview_id=6...
Also, if a post/page has already been published the preview will show the page without edits (unless I change the URL as noted above). However, if I attempt to preview a page/post that has not yet been published the preview only shows the home page.
Any help/guidance is greatly appreciated. Thanks!