admin管理员组文章数量:1433481
I've built a website in Angular that leverages Wordpress as a backend, specifically using its REST API. I am replacing an existing website, and my client does not intend to change the original hostname of their site. Initially I was hoping to publish Angular's static files to a CDN at their original hostname (myclient) and move their Wordpress to api.myclient. In this scenario my client would log in at api.myclient/login to manage their content there as well.
This is where I am starting to have some concern. I noticed a few issues, which are problematic, and I'm hoping someone might have a smart solution. The issues are as follows:
- When I go to api.myclient/login and login, I am redirected to myclient/wp-admin, which is my CDN, so I cannot login.
Initially I found this solution, which outlines a way to allow my client to log into wp-admin at any domain. However, this presented a few other problems.
- Jetpack is giving me warnings about entering safe mode because the Wordpress site has changed domains
- If I create a new post, my RSS feed has links pointing to api.myclient rather than myclient
- Publishing my website to social media links to api.myclient/post-slug rather than myclient/post-slug
Has anyone else run into this issue? My problems seem mainly related to jetpack, so if this is not the right forum for this kind of question please let me know!
本文标签: rest apiUsing Wordpress solely as a Backenddealing with WPSITEURL
版权声明:本文标题:rest api - Using Wordpress solely as a Backend - dealing with WP_SITEURL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745607407a2665913.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论