i am using CDN

#15800
  • Resolved Harun Shekh
    Rank Math free

    Hello, I am using RankMath Version 1.0.33 and tried this snippet

    But my sitemap is not reflecting with CDN path.

    Thanks

    • This topic was modified 5 years, 1 month ago by Harun Shekh.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Have you tried to flush your permalinks after adding this code?
    Could you also try the following code instead:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    add_filter( 'rank_math/sitemap/entry', function( $url, $type, $object ){
    	
    	$url = str_replace( 'http://url_one.com', 'https://cdn.url_two.com', $url );
      
    	return $url;
    }, 10, 3 );

    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 2 replies - 1 through 2 (of 2 total)

The ticket ‘i am using CDN’ is closed to new replies.