Title: 404 Error Occures!
Last modified: April 9, 2022

---

# 404 Error Occures!

 *  [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/)
 * Hi! I installed recently your xml plugin, but it shows a 404 error on all the
   links? What should I do? I turned off a sitemap module on Rank Math, which I 
   used earlier. Thank you for your support!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F404-error-occures%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/404-error-occures/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/404-error-occures/page/2/?output_format=md)

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15544364)
 * Hi, siteamp_index.xml is not part of this plugin. You probably have another sitemap
   activated (too). On Settings > XML Sitemap you have a button “Check for conflicts”
   which might help you figure out what is going wrong…
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15544858)
 * Hi! I deactivated another plugin, but still have the same issue. What can be 
   wrong? How to fix it?
    [https://mycattips.com/sitemap_index.xml](https://mycattips.com/sitemap_index.xml)
   [https://mycattips.com/sitemap-news.xml](https://mycattips.com/sitemap-news.xml)
   [https://mycattips.com/sitemap-posttype-post.2021.xml](https://mycattips.com/sitemap-posttype-post.2021.xml)
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15544863)
 * Maybe it ocurrs becase of nginx server?
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15544869)
 * But another sitemap was working….
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15544912)
 * No conflicting static files found.
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15545449)
 * Hi, it looks indeed like you have some Nginx rules that prevent the requests 
   reaching WordPress. It might be specific rules for Yoast sitemap (if you used
   EasyEngine to set up your server for example) or a rule that adresses static 
   files including .xml requests without defaulting to index.php when no file is
   found.
 * If you follow the suggestions from [https://wordpress.org/support/article/nginx/](https://wordpress.org/support/article/nginx/)
   you should be fine but I suspect you have a more complex setup?
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15547244)
 * I’m on Namecheap and Ezoic servers now, should I insert a specific code? Could
   you please tell me exactly **What Code from the list and to which field should
   I paste?**
    Thanks a lot!
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15549112)
 * In a general sence: the combination of the following two rules is enough for 
   WordPress to work. They catch all requests and (if the requested resource does
   not exist) divert them to index.php
 *     ```
       ...
               location / {
                       # This is cool because no php is touched for static content.
                       # include the "?$args" part so non-default permalinks doesn't break when using query string
                       try_files $uri $uri/ /index.php?$args;
               }
   
               location ~ \.php$ {
                       #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
                       include fastcgi.conf;
                       fastcgi_intercept_errors on;
                       fastcgi_pass php;
               }
       ...
       ```
   
 * This is also enough for the xml sitemap plugin to work.
 * However, if there is another rules that target files with an .xml extension for
   example, then that rule applies instead of the general rule and you will probably
   get a 404 response because the .xml sitemap location is not a real file…
 * You’ll have to dig through the Nginx config, looking for anything where “xml”
   or “sitemap_index” comes up… Let me know and I may be able to suggest an alternative
   rule.
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15549205)
 * Hi! I inserted the rules you provide above but the problem still exist. I suppose
   we should try another variant.
    Where can find Nginx config file? In my Admin
   panel? It’s a bit complicated for me, could you please specify the steps I should
   follow. Thank you
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15549219)
 * > I inserted the rules you provide above but the problem still exist
 *  I think there is some confusion… Where did you insert those rules?
 * It does not sound like you have access to the Nginx server config file(s)… Does
   your hosting provider have support where you can ask about the redirection from
   sitemap.xml to sitemap_index.xml and maybe remove it, and all other rules that
   target sitemaps specifically?
 * If not, then it looks like the Nginx rules are conflicting with this sitemap 
   plugin and it will probably be easiest to try another…
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15551976)
 * I’ve added this rule to the admin panel of the plugin, not to the server config
   files, I haven’t access to them. Yes, I’ve contacted my hosting provider, they
   tell me that I should ask a plugin author to solve this issue, they cant help
   me.
    What should I do in this case? Is there some other opportunity? Or only 
   other plugin? Thank you
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15554978)
 * Sorry, no. A plugin could never “fix” server config files, that would be a security
   breach. But it is not even clear that is is the web server rules that do this
   redirect. It surprises me much that a web host would impose such a redirect, 
   almost forcing you to use the Yoast sitemap.
 * Maybe the Ezoic settings are playing a role here?
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15555836)
 * I see, I will try to explain it to them once more. Thank you
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15555972)
 * Hi! Namecheap hosting provider adjusted a rule so that the sitemaps are loading
   fine, But there is a Redirect from index to sitemap.xml.
 * How to fix it? If you have some code/rule, they will add it too.
 *  Thread Starter [jennyco999](https://wordpress.org/support/users/jennyco999/)
 * (@jennyco999)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/404-error-occures/#post-15556080)
 * Solved! A redirect error is fixed by clearing browser cache!

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/404-error-occures/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/404-error-occures/page/2/?output_format=md)

The topic ‘404 Error Occures!’ is closed to new replies.

 * ![](https://ps.w.org/xml-sitemap-feed/assets/icon-128x128.png?rev=1112143)
 * [XML Sitemap & Google News](https://wordpress.org/plugins/xml-sitemap-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/xml-sitemap-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/xml-sitemap-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/xml-sitemap-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/xml-sitemap-feed/reviews/)

 * 20 replies
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/404-error-occures/page/2/#post-15569339)
 * Status: not resolved