how can I change yoast seo generated sitemap file URL

0 votes

I have a wordpress website with yoast seo plugin installed. currently the sitemap url is www.domain.com/sitemap_index.xml. As far as I know from my search results on Internet, yoast plugin itself doesn't have such option/feature for changing generated sitemap url, how can I change this url to a customized one programmatically?

Feb 21 in Others by Kichu
• 17,220 points
187 views

1 answer to this question.

0 votes
plugins/wordpress-seo/inc/sitemaps/class-sitemaps-router.php
go to this directory and change the code in line 34 to 
add_rewrite_rule( 'your_name_here\.xml$', 'index.php?sitemap=1', 'top' );


this will work 
answered Feb 22 by narikkadan
• 7,860 points

Related Questions In Others

0 votes
0 answers

Yoast SEO/Facebook OG: Image not displaying after fb url change

i recently changed the name of my ...READ MORE

Feb 14 in Others by Kichu
• 17,220 points
37 views
0 votes
0 answers

How can I re-download the pem file in AWS EC2?

I created a key pair pem file ...READ MORE

Apr 5 in Others by Kichu
• 17,220 points
51 views
0 votes
0 answers

How can i solve NoClassdeffoundError on my mobile?

Oct 15, 2019 in Others by SolomonTS
• 120 points
167 views
+2 votes
0 answers

how can i download and install setookit?

Nov 30, 2019 in Others by anonymous
• 140 points
486 views
0 votes
1 answer

How to Access Yoast SEO tags in Wordpress API Callback

use rest api to request for the ...READ MORE

answered Feb 12 in Others by narikkadan
• 7,860 points
55 views
0 votes
1 answer

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

get_post_meta(), use this to get the meta ...READ MORE

answered Feb 11 in Others by narikkadan
• 7,860 points
30 views
0 votes
1 answer

Simple question regarding PHP, Wordpress & Yoast SEO

the way the search engine displays your ...READ MORE

answered Feb 14 in Others by narikkadan
• 7,860 points
26 views
0 votes
1 answer

How to add a class to the <a> tag in Yoast SEO breadcrumbs?

add_filter( 'wpseo_breadcrumb_single_link', 'ss_breadcrumb_single_link', 10, 2 ); function ss_breadcrumb_single_link( ...READ MORE

answered Feb 22 in Others by narikkadan
• 7,860 points
55 views
0 votes
1 answer

How can I create custom SEO-friendly URLs in OpenCart?

Index: catalog/controller/common/seo_url.php =================================================================== --- catalog/controller/common/seo_url.php (old) +++ catalog/controller/common/seo_url.php ...READ MORE

answered Feb 21 in Others by narikkadan
• 7,860 points
23 views
0 votes
1 answer

How can I use wow.js and animate.css without affecting SEO?

there are two animation classes in MDBs ...READ MORE

answered Feb 22 in Others by narikkadan
• 7,860 points
218 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP