Need to change sub domain to use headleass CMS domain

#504519
  • Resolved Praful Patel
    Rank Math free

    Hello Team,

    Hope you doing well!!

    As I used headless CMD for the front part and now I want to generate a Sitemap like the below example. but I can’t find the option for the same. Can you please help to do that?

    https://api.gharpedia.com/sitemap_index.xml

    Apart from that need to add slug separate slug for every post type.

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

    Thank you for contacting Rank Math and bringing your concern to our attention.

    The sitemap by Rank Math usually generates dynamically and uses the domain where you setup the WordPress CMS.

    So, if you’ve WordPress installed on https://subdomain.yourdomain.com, your sitemap should automatically be generated on your subdomain. The address should be look like https://subdomain.domain.com/sitemap_index.xml.

    Apart from that need to add slug separate slug for every post type.

    Can you please confirm if you want to change the slug before they gets included in the sitemap? If so, then yes, it’s possible to change the slug of a post/page before they get attached to the sitemap.

    Here’s a filter below that you can follow to do that:
    https://rankmath.com/kb/filters-hooks-api-developer/#filter-sitemap-item

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Hello Team,

    Thanks for your reply the above issues were resolved using a hook.

    But now face another issue with 404 sitemaps not being found.

    Here is main sitemap url – https://gharstage.prodevtest.com/sitemap_index.xml

    The below sitemaps showing 404
    https://gharstage.prodevtest.com/infographics-sitemap.xml
    https://gharstage.prodevtest.com/careers-sitemap.xml

    Hello,

    I checked your sitemap and it seems both of the child sitemap is loading perfectly fine. Here are the screenshots for your reference:

    Hope that helps.

    Thank you.

    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 ‘Need to change sub domain to use headleass CMS domain’ is closed to new replies.