Redirected to login page when editing - different WordPress Address and Site Address URLs

Hi, we recently changed the frontend URL of our site and now use different values for the “WordPress Address (URL)” and “Site Address (URL)” fields on our Settings -> General page. These URLs need to be different as the frontend is proxied by a third-party service using the new URL, but we are serving the content from the server located at the old URL. We still use our old URL to log into the wp-admin dashboard, while the new URL is displayed on the frontend.

This is all working fine except that when we try to edit a Cornerstone post, we are redirected to the login screen. I found other topics on this issue in this forum, but they all recommended changing these fields to match, which isn’t possible for our unique configuration.

Could you please let me know how we can fix this issue so we can edit posts in Cornerstone again?

I’m not sure we can give you a workaround for this unfortunately. If possible I would try proxying the /cornerstone endpoint to your subdomain and see if that helps. As well as wp-json since it’s going to have a authentication issues when those domains are different. Even then when I tried this I ran into issues. The same issue happens in WPML subdomain mode and we opted to just redirect to give a quick solution to everybody. Eventually I’m going to rewrite how we render pages back to before Pro4 when issues like this came up, but I already know from my end it’s a serious overhaul. rest_url, and cs_filter_app_url are all filters that pertain to this. We us cs_preview_state in the post body for the initial grab and ?cs-render for subsequent renders. Maybe this helps you. Have a great day.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.