You appear to be a bot. Output may be restricted
Description
Stop trailing slashes on sitemap.xml URLs.
Usage
$bool|string = WPSEO_Sitemaps_Router::redirect_canonical( $redirect );
Parameters
- $redirect
- ( string ) required – The redirect URL currently determined.
Returns
bool|string $redirect
Source
File name: wordpress-seo/inc/sitemaps/class-sitemaps-router.php
Lines:
1 to 8 of 8
public function redirect_canonical( $redirect ) { if ( get_query_var( 'sitemap' ) || get_query_var( 'yoast-sitemap-xsl' ) ) { return false; } return $redirect; }