Exclude archive url “?post_type=” from sitemap

#216657
  • Resolved hk elim
    Rank Math free

    Hi,

    I’d like to exclude a URL from the sitemap, but after serval trials, it failed.

    The url is something like this :”?post_type=xxxxxxxx”

    It doesn’t provide the page ID, seems to be a archive page that was auto generated by the plugins.

    Appreciate your help,

    Thanks!

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 navigate to WP Dashboard > Rank Math > Sitemap Settings > Pagelayer-Template(in the post types) and disable the Include Sitemap option. This will exclude the pagelayer-template-sitemap.xml from the main sitemap.

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

    THX for the reply,
    regrettably , there is no option of pagelayer-template-sitemap.xml

    https://i.ibb.co/02SZ9fY/111.png

    Brian
    Rank Math free

    Hello

    Thank you for getting back to us.

    You seem to have the entry:leadelete.com/pagelayer-template-sitemap.xml within your sitemap. This means that this is a post type within your website. If not then you must have added this with some custom option with a filter code.

    Could you please clarify this issue.

    Also, you can also exclude such a URL to prevent Google from crawling it using the robots.txt file. You can use the line: Disallow: /*?*. However, there would be no need to re-invent the wheel while there is an option to do so in the settings.

    We are looking forward to helping you.
    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 ‘Exclude archive url “?post_type=” from sitemap’ is closed to new replies.