• Resolved mmkh

    (@mmkh)


    Hello, first of all, thank you for taking the time to answer this topic and thank you for your good plugin. I wanted to do something that I really didn’t have a solution for. I am a template developer and in a unique project related to wedding and ceremony services, we are creating a database that includes businesses related to this business such as bridal and groom’s clothing stores, wedding halls, wedding cars, flower arrangements, candle arrangements, photography and videography, etc. Since this database will be very extensive, we will implement it using a custom post type for each business and field of work and business, the structure of its Internet address will be like this:
    domain//services/atelier/ and…. For example, this is for a photography and videography studio. It is also like this for related businesses, which has a structure like this:
    domain/services/Name of the business area like Telar, Khodror, etc.
    What you probably noticed is the slug before the business name which is Service and this is exactly where we have a problem
    Since there are many businesses related to this area, we plan to put all of them in the sitemap under domain/services, which looks like this:

    —————————————————

    https://yoursite.com/sitemap_index.xml
    ├── https://yoursite.com/services/
    ├──├── https://yoursite.com/services/atelier/
    ├──├── https://yoursite.com/services/maison/
    ├──├── https://yoursite.com/services/halls/

    ———————————————–

    در حالیکه با ساخت پست تایپ جدید رنک مث انرا اینگونه شناسایی میکند:

    ——————————————————–

    https://yoursite.com/sitemap_index.xml
    ├── https://yoursite.com/services/
    ├── https://yoursite.com/services/atelier/
    ├── https://yoursite.com/services/maison/
    ├── https://yoursite.com/services/halls/

    ——————————————————-

    Of course, the plugin works correctly, but I expect and want another use for it, which is that related jobs are placed under a subcategory of the services section and not created independently. Now, another issue is how to create domain/services, because if it is added to the structure of a page or post, they will be placed under:
    domain/page-sitemap.xml
    or
    domain/post-sitemap.xml

    ————————————————

    If domain/services is actually created as a new post type, apart from being completely useless for us, the structure of its sitemap will be as follows:

    —————————————–

    https://yoursite.com/sitemap_index.xml
    ├── https://yoursite.com/services/
    ├── https://yoursite.com/services/atelier/
    ├── https://yoursite.com/services/maison/
    ├── https://yoursite.com/services/halls/

    ———————————–

    The best thing I am looking for is to create a page with the services slug, whose Internet address is: domain/services, but exceptionally outside of https://tashrifat.co/page-sitemap.xml and has subcategories like What follows are actually our dedicated post types for different businesses:

    ——————————————————–

    https://yoursite.com/sitemap_index.xml
    ├── https://yoursite.com/services/ (post type: page)
    ├──├── https://yoursite.com/services/atelier/ (post type: atelier)
    ├──├── https://yoursite.com/services/maison/ (post type: maison)
    ├──├── https://yoursite.com/services/halls/ (post type: halls)

    ———————————————————

    And the last question is, if I enable the use of tags and categories for my dedicated post types, will it save the rank for each post type separately and in the form of:
    https://yoursite.com/services/atelier/taxonomy or in the same:
    https://yoursite.com/taxonomy-sitemap.xml and if it does, how do I change it to the second mode?

    ————————————————————–

    In this message, I would like to thank you for taking the time to read and respond to this message. It is worth mentioning that if there is a need to place a specific code somewhere to implement this task, it is completely possible and I will not hesitate to do it.

    • This topic was modified 1 year, 5 months ago by mmkh.
Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @mmkh,
     
    Thank you for contacting Rank Math support.
     
    Unfortunately, it isn’t possible to change the sitemap structure. The sub-sitemaps of each post type will be created only under the main sitemap_index.xml. You can’t nest them under any other sitemap. The same applies to the taxonomy sitemaps. Also, the sitemap is used by the search engines to discover the URLs and they will be able to do that with our plugin’s default sitemap structure. There is no benefit in creating a nested structure for the sitemaps.
     
    If you still want to create a custom structure for the sitemap, you will have to use another sitemap plugin that supports the custom structure, as it isn’t possible with Rank Math’s sitemap module.
     
    Please do not hesitate to let us know if you need our assistance with anything else.

Viewing 1 replies (of 1 total)

The topic ‘Restructuring the sitemap’ is closed to new replies.