Hello,
I’m sorry to hear about the issues you’re facing with the Agile Store Locator and Rank Math. Thank you for bringing this to our attention.
To address the 404 errors for the store pages and the automatic addition of a sitemap for stores created by Agile Store Locator, we recommend adding a redirect for these pages using the Rank Math Redirection Manager.
Here’s how you can add a regex redirect for the store pages:
- Navigate to Redirections from Rank Math’s dashboard.
- Add a new redirection from Redirections → Add New.
- Add the source URL pattern as
/stores/-(d+)/
with the matching option set to Regex from the drop-down list.
- Add the destination URL, and make sure you activate the redirect.
- Click on Add Redirection to add the regex redirect.
This should help in redirecting the store pages to the desired destination. If you encounter any issues while setting up the redirect, please let us know, and we’ll be happy to assist further.
Thank you for reaching out to us, and we appreciate your patience as we work through this together.
Best regards.
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
How To Exclude Rank Math Sitemaps from Caching » Rank Math
How to Use Regex Redirects in Rank Math » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
yeah /stores/-(d+)/ is not working either 🙁
Hello,
You can try to set the regex redirection like the following one and see if that works for you:
Source URL: stores/-([0-9]+)
Regarding the URLs in the sitemap, you can disable the post type from WP Dashboard > Rank Math > Sitemap Settings.
Let us know how it goes. Looking forward to helping you.
Thank you.
hi
turns out the issue was not with my syntax itself, but with the extra slash at the beginning.
so for others struggling with the same issue, try using the equivalent of stores/ instead of /stores/.
for the RankMatk team, maybe have a look at the RankBot background info 🙂
Regarding the URLs in the sitemap, you can disable the post type from WP Dashboard > Rank Math > Sitemap Settings.
good to know, thanks, but i’d rather choose what gets indexed instead of hurrying to add an exclusion every time i add a new plugin/functionality/etc.
all in all everything works afaik, so happy new year and an awesome 2024 🙂
Hello,
We’re delighted to hear that this issue has been resolved. We appreciate your kind words and your support.
I’m closing this ticket now but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you again.
Thank you for choosing Rank Math and have a wonderful day!
Cheers