• Resolved paulsally

    (@paulsally)


    Hi @ravanh

    Maybe I’m asking something trivial but we’ve inherited the restyling of a website. We’re using AIOSEO to generate the sitemap at sitemap.xml.

    I’d like to use your plugin to generate the sitemap for Google News at sitemap-news.xml but the address returns a Page Not Found error. If I suffice the domain with the query string /?feed=sitemap-news then the sitemap shows (it only shows one url but I guess that’s because I don’t have fresh content in my local machine where I’m testing the plugin.

    I’d like to have the sitemap-news show at sitemap-news.xml. There are not other plugins generating it (AIOSEO only offers this feature for pro packages). Is that possible? Is the url with query string ordinarily crawled by Google or is it necessary to submit if via Search Console?

    What is the difference between the two urls? I’m asking because have to instruct the client to perform the required actions.

    Thanks!!

    Sara

    • This topic was modified 1 year ago by paulsally.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Hi @paulsally the only difference between the two URLs is that the “?feed=” version will work independent of your chosen Permalink structure while the “sitemap-xxx.xml” variants will only be available when your Permalink structure is set to anything except Plain.

    I’m assuming your site is not using Plain permalinks, but if it is, then this plugin can only generate your news sitemap at /?feed=sitemap-news… Your only option left would be to manually set up a 301 redirection for requests to sitemap-news.xml to the non-pretty URL.

    But since you’re using an SEO plugin, I will guess your site is set one of the other permalink structure settings.

    Go to Settings > Permalinks and verify your permalink structure option. There’s no need to save the settings again, but there is no harm in doing that neither. After visiting the permalinks settings page, try your /sitemap-news.xml again.

    Thread Starter paulsally

    (@paulsally)

    Hi @ravanh,

    You’re absolutely right: the permalink structure was set to Custom (/%category%/%postname%/) and as I visited the Permalink options page the sitemap-news.xml became visible at the pretty url.

    Thanks very much for the plugin and for your clear and thorough explanation. In fact, I’ve read some of your replies and I have to say I was impressed by their clarity and their accuracy!

    I wish you keep up with your excellent work!

    .S.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sitemap-news.xml vs /?feed=sitemap-news’ is closed to new replies.