WordPress.org

Ready to get started?Download WordPress

Forums

XML Sitemap & Google News feeds
[Plugin: XML Sitemap & Google News Sitemap Feeds] Not creating sitemap.xml (7 posts)

  1. norecipes
    Member
    Posted 3 years ago #

    I was moving from single blog to network blog today and the old plugin I was using does not support multiple blogs so I removed that plugin, deleted sitemap.xml and sitemap.xml.gz and installed your plugin. After activating it did not create a sitemap, so I tried updating a post to see if that would do it. That still did not work so I thought that perhaps Network mode had to be active in order for the plugin to work, so I went ahead and enabled Network mode on WP. I still only have the master blog setup, but after network activating the plugin it's still not generating the sitemap. Also, there's no reference to the sitemap in robots.txt. Any ideas?

    My URL is http://norecipes.com

  2. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    I am not really clear on how you have set up your WP. Is it a multi-site installation? If so, is it in subdir or subdomain mode?

    Anyway, you need to make sure that you remove any files left by the old XML Sitemap plugin. And every robots.txt (if any)... Check not only the root but also in your /wp-content/blogs.dir/x/files directories!

    And check your .htaccess for any redirection rules that are meant for either sitemap.xml or robots.txt requests.

    Last tip: on your site(s) I see that there is some feed redirection to feedburner going on. And since my plugin creates the XML Sitemap in the form of a feed, it seems every request for it gets redirected to feedburner. You need to find out how to control that and only redirect RSS feed requests (/feed/ or /rss/)

  3. norecipes
    Member
    Posted 3 years ago #

    It's multi-site now in Subdomain mode, but the plugin was not working before I switched to multi-site. I had originally thought it wasn't working in single site mode because on your website you say that it was built for multi-site, so I tried enabling multi-site, but that does not seem to have worked.

    I removed the existing robots.txt file and checked all subdirectories for other sitemap.xml files (there are none). I thought the feedburner redirect was odd to and checked .htaccess, but there aren't any redirects that I can see that would cause that (nothing specific to sitemap.xml, and nothing pointing to feedburner.com). Any ideas why this might be happening?

  4. norecipes
    Member
    Posted 3 years ago #

    I've temporarily switched back to a beta version of Google XML Sitemaps (that supports multi-site), which works. I'd rather use your plugin though because it supports caching using W3 Total Cache so hopefully we can figure this out. Thanks for your help!

  5. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    Well, XML Sitemap Feed works on WP in normal mode too so you do not need to use multi-site... I don't know if it's at all possible for you to revert to a backup from before the conversion but I have the impression the complications of multi-site is not what you need on your site. Unless you are planning to start different sites on the same installation, you are better off keeping it simple.

    So my first advice would be: go back to normal / single site mode by restoring a backup.

    About the FeedBurner redirect, I supppose it is your theme doing that. Look in the theme options for a setting with http://feeds2.feedburner.com/NoRecipes ...

    ===

    If you decide to keep working in multi-site mode, I have some questions and suggestions for you.

    One thing that is puzzeling me about your setup is this:
    You have on your main site http://norecipes.com/ there is a menu item "Ingredients" that points to http://ingredient.norecipes.com/. I would have guessed that is one of your sub-sites but when I open the first article on that front page, I see the URL swap to http://www.norecipes.com/ingredient/black-cardamom

    Looking at the sitemap of that sub-site on http://ingredient.norecipes.com/sitemap.xml I see more links like that. And these URLs will be regarded as EXTERNAL links which makes the sitemap invalid (no matter which pluginyou use). Trying http://ingredient.norecipes.com/robots.txt I get a 500 internal server error...

    Another example, I can visit your main site front page via http://norecipes.com/ and http://www.norecipes.com/ where in that last case the www is left in front of the domain name and I do not get redirected to http://norecipes.com/... But all the links to posts do start with http://norecipes.com/ and if I try http://www.norecipes.com/sitemap.xml I get redirected to http://norecipes.com/ (without sitemap.xml)

    Weird stuff going on there which needs to be taken care of first. Can you explain it to me?

    Anyway, are you on your own server or a shared hosting account? I think you need to take a look at your domain pointing manager and sort out what goes where. The best thing to do on a multi-site setup is point everything to the same WP installation and avoid using any www in your domains. There is no need for www anyway and it will cause duplicate content and invalid sitemaps.

    Then, if you can, set up a subdomain wildcard (*) pointer that goes to the same WP installation and let WP handle the rest. If your provider does not allow wildcards in the domain manager, you will need to configure each subdomain individually. Not a problem, as long as it is done right.

  6. norecipes
    Member
    Posted 3 years ago #

    Wow thanks for your thorough response! I was actually intending to go to multi-site at some point (just not yet) for exactly the reason you pointed out. I currently run 3 wordpress installations and need to add a 4th. The upkeep is getting a little ridiculous and I wanted to consolidate on 1 install.

    I just migrated ingredients to a child blog and set 301 redirects in the .htaccess file so everything should now be going to either http://norecipes.com or http://norecipes.com/ingredient.

  7. RavanH
    Member
    Plugin Author

    Posted 3 years ago #

    That's one valid reason going to multi-site mode (I use a similar setup with my sites on it) but you have to realize that WP in MS mode acts a bit differently than WP in single site mode. And there are a lot of plugins out there that are not really compatible with multi-site mode and can start showing some weird behaviour...

    Anyway, I think you are saying /ingredient/ is a child blog? However, it looks like it is not running on the same installation. For example, the stylesheet of this blog is on http://norecipes.com/ingredient/wp-content/themes/thesis_18/style.css while the one for the main blog is on http://norecipes.com/wp-content/themes/thesis_18/style.css (missing that /ingredient/ in the url) ...

    I'm afraid I still do not understand what your setup is ;) Or is this multi-site in subdir mode?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic