• WordPress version: 3.4.1
    WordPress SEO version: 1.2.5

    During some routine testing I disabled and then re-enabled the WordPress SEO plugin. Afterwards, attempting to visit /sitemap_index.xml returned a 404 error.

    I went to the Yoast WordPress SEO: XML Sitemaps settings page and the checkbox to enable XML site map functionality was still checked. I clicked the Save Settings button and the sitemap started working again.

    I was able to repeat this by disabling and enabling the WordPress SEO plugin again.

    I verified the same result on a test install running only the WordPress SEO plugin and the Twenty Eleven theme.

    https://www.ads-software.com/extend/plugins/wordpress-seo/

Viewing 12 replies - 16 through 27 (of 27 total)
  • Had some issue pop up this morning thought I solved it but I guess I didn’t. Waiting to see

    I used this code to solve sitemap but then it screwed up all my pages

    # WordPress SEO - XML Sitemap Rewrite Fix
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    </IfModule>
    # END WordPress SEO - XML Sitemap Rewrite Fix

    While I do not recommend you do this unless you have to have your sitemaps back online.

    Navigate to “/wp-content/plugins/wordpress-seo/inc/class-sitemaps.php”.

    rename class-sitemaps.php to something like class-sitemaps.ORIGINAL and leave it on the server

    Then edit a local copy by going into the file and search for the function init(). Now change the original code to match below.

    function init() {
    	        global $wp_rewrite;
    	        $GLOBALS['wp']->add_query_var( 'sitemap' );
    	        $GLOBALS['wp']->add_query_var( 'sitemap_n' );
    	        add_rewrite_rule( 'sitemap_index\.xml$', 'index.php?sitemap=1', 'top' );
    	        add_rewrite_rule( '([^/]+?)-sitemap([0-9]+)?\.xml$', 'index.php?sitemap=$matches[1]&sitemap_n=$matches[2]', 'top' );
    	        $wp_rewrite->flush_rules();
    	    }

    So far this has worked for me without other issues, at least I have not noticed any. Hopefully this will get me by until next fixed update.

    Thanks Rottie but it doesn’t work me

    Well hopefully this gets resolved with a perm solution, as for me it has seemed to fix this issue. I do realize this is a temp fix.

    esmi, i never took personal pot shots at anyone, so don’t twist things into somthing they are not. It’s quite irresponsible.

    Hi people, I got here searching for sitemaps, but I am not sure if my question perfectly fits this thread. Any advice from you will be greatly appreciated as I have tried looking for this information all over the net already.

    I have got a website, let’s say website.com and its blog is on wordpress with the address website.com/blog. I use Yoast for the blog and I have submitted my site’s sitemap to Google webmasters using xml-sitemaps.com. My question is, do I need to verify my blog which is at website.com/blog separately in webmasters tools?

    If this is not needed since I have Yoast, how do I check/verify the changes I have made to my blog have been updated to search engines so that if there is a URL change of a particular post or any other significant change to my blog gets notified to search engines?

    I am asking this because I noticed my ranking plummeted after I made changes to my blog. I switched to Yoast a couple months back and updated Title and Description of my old blog entries that were lacking focus word, title, and description under Yoast under each entry. After doing this I saw the number of URLs of my site increase from 500 odd to 800 and then after a few days they came back down to 500 odd, but with a drastic change in my SERPs.

    Any help will be really kind. Many thanks for taking time out to read this.

    Please start your own thread since this thread is about issues of the plugin not advice on how to run SEO, websites and ranking.

    Thanks

    I am sorry for not being clear, but what I meant was, the number of URLs indexed by Google (as per data from SEO Quake) increased from 500 to 800 and then they came back down to 500, but this also resulted in the site losing rankings.

    Many thanks.

    essay i dont know alot about SEO stuff, but you should get a html code/Tag from webmaster tools – look for different ways to verify the site. Then take that code and put it into the yoast section for those codes ; then go back to webmaster tools and hit verify, and you should be good (it will tell you).

    Im currently using yoast, but have the sitemaps disabled and have another site map plugin called BWP running aswell. Its not ideal, but it does the job.

    Thanks jjsbetteroff. I am aware of adding a site to webmaster tools and then adding the verification code to the yoast section under webmaster tools under dashboard, but my question is, do I need to add my blog which is located at website.com/blog to my Google webmasters account first or can I just put the same code on Yoast section that is found under my site’s (website.com) homepage head, which was originally used to verify my main site, which is website.com

    My only purpose is that search engines should take note of any changes I make to the blog so that I don’t lose ranking due to any changes that I make to my blog.

    I am facing a problem that i have a sitemap.xml file already as i am using all in one seo,then i hav installed seo by yoast some how i have got sitemap_index.xml file ,the issue is the sitemap_index is not working ,it hav updated some content then after some days it is not updating at all ,Do i have a solution for this? or can i change seo yoast to use the sitemap.xml file please give a solution thank you.

    I’ve been having strange sitemap issues as well lately, but only when W3 Total Cache is also activate. No matter what settings W3 has, even if default, my sitemap gets errors.

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] XML Sitemap not active after plugin disable/enable’ is closed to new replies.