redirect headless wordpress frontend without affecting API

[ad_1]

Hi,

I am using Headless WordPress with [https://www.wpgraphql.com/]) for API hosted on SiteGround and Nextjs for frontend.

Now, I have the API working at [https://blog.mywordpress.com/graphql]) and the Nextjs frontend is working well at [https://www.mydomian.com/learn])

How can I redirect visits to [https://blog.mywordpress.com/]) to [https://www.mydomian.com/learn]) while allowing [https://blog.mywordpress.com/wp-admin]) to working on posts?

I try to do a 301 redirect from [https://blog.mywordpress.com/]) to [https://blog.mywordpress.com/]) using SiteGround but the API stopped working (I guess API address was redirected as well)

Anyone can help?

Thanks a lot!!!!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer