Hello,
Thank you for contacting us and we regret the inconvenience caused.
We add the URL same as the canonical URL in the sitemap and the canonical URL of the page does have a trailing slash.
Please head over to your WordPress admin area > Settings > General, and check if the “WordPress Address (URL)” or “Site Address (URL)” fields have a trailing slash.
Let us know how that goes.
Thank you.
Hi,
Neither of those fields has the trailing slash, I have a screenshot but can’t seem to paste it here.
Both the WordPress address (URL) and site address (URL) say:
https://paritor.com
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hi, I sent the sensitive data yesterday and just realised you might not get a notification without a message.
Nevermind, I can see someone internally has generated the message above.
Hope to hear from you soon!
Hello,
We added the following filters on your website to force the removal of the trailing slash from the Landing Pages:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
return untrailingslashit( $canonical );
});
add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){
$url['loc'] = untrailingslashit($url['loc']);
return $url;
}, 10, 3 );
This was added with the Code Snippets plugin and it’s under the name “Canonical”.
Don’t hesitate to get in touch if you have any other questions.
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.