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
• 19,040 points
340 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
• 10,840 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
• 19,040 points
59 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
• 19,040 points
189 views
0 votes
1 answer

How can i create file at external storage in Android?

We have not had read/write filesystem access ...READ MORE

answered Jun 6 in Others by nisha
• 2,160 points
37 views
0 votes
1 answer

How can I open a URL in Android's web browser from my application?

ry this: Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri ...READ MORE

answered Jun 14 in Others by polo
• 1,500 points
21 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
• 10,840 points
115 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
• 10,840 points
37 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
• 10,840 points
33 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
• 10,840 points
144 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
• 10,840 points
33 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
• 10,840 points
350 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