How to use Rank Math in Headless Wordpress?

#394116
  • Resolved Dmytro P.
    Rank Math free

    Hello!
    I’m currently working on a project I need to set up SEO. This is a project for one of my clients. In the project, I use Headless WordPress as an API, for the front-end – Next js app. The client gave me Rank Math Pro to work on his Headless WordPress. I need to create a Schema (schema.org) for SEO in Rank Math Pro, but I can’t. I searched Rank Math for information on creating a schema.org schema for a long time, but all I found was related to WordPress website development. In my Headless WordPress, I don’t use pages and posts, I used the Atlas Content Modeler plugin to organize the data. Can you tell me how to start creating schemes for rank math and then request them through the Rest API in the front-end?
    Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thanks for contacting us and sorry for any inconvenience that might have been caused due to that.

    Please follow this guide to enable the Headless CMS support of our plugin: https://rankmath.com/kb/headless-cms-support/

    Hope this helps. Let us know if you need any other assistance.

    I read this first… I make a Rest api request and I don’t get what I want. From this article https://rankmath.com/kb/headless-cms-support/
    tell me what url should be?
    As written in this article, I need to make a request according to the example: https://your-domain.com/wp-json/rankmath/v1/getHead?url=https://your-domain.com/hello-world
    What should be in your-domain.com instead? Domain front-end Next js app or domain headless wordpress?
    Headless wordpress has a redirect to the front-end Next js app.

    Nigel
    Rank Math business

    Hello,

    Please disable redirects for the /wp-json/ path and all subfolders as it contains all WordPress REST API endpoints. Once the redirect has been disabled, you should be able to view and test all exposed endpoints.

    Hope that helps. Please let us know if you have questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘How to use Rank Math in Headless Wordpress?’ is closed to new replies.