Hello,
I understand your concern about hiding your sitemap URL from people while keeping it accessible to search engines like Google. To hide your sitemap URL from visitors and display it only for bots, you can use the “Hide Sitemap” option in Rank Math.
Here’s how you can do it:
- Go to your WordPress Dashboard.
- Navigate to Rank Math SEO > Sitemap Settings.
- In the Video Sitemap tab, you will find the “Hide Sitemap” option.
- Enable this option to hide the sitemap for normal visitors and display it only for bots.
If you need further assistance or have any other questions, please feel free to ask. Thank you for reaching out with your concern.
Sources:
How to Configure Sitemaps in Rank Math – Best Settings and Tips
How to Fix “Incorrect HTTP Header Content-Type” Error in Sitemaps » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
How to Configure Sitemaps in Rank Math – Best Settings and Tips
How to Add Sitemaps to Robots.txt » Rank Math
I cannot find this option In the Video Sitemap tab, you will find the “Hide Sitemap” option.
Hello,
Thank you for contacting us and bringing your concern to our attention.
Please ignore the reply from the RankBot. The sitemap has the same URLs that are inside your website, so there’s no extra information there and there is no benefit to hide it from your competitors.
However, it is not possible to hide the sitemap from your competitors. If you want, you can only change the sitemap base URL by using the following filter on your website:
add_filter( 'rank_math/sitemap/base_url', function( $base ){
return 'YOUR_CUSTOM_BASE'; //change_here
}, 10, 1 );
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
After applying the filter on your website, please flush the Sitemap cache by following this video screencast: https://i.rankmath.com/pipRDp
Hope that helps and please don’t hesitate to let us know if you have any other questions.
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.