• 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 to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • 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

    (@jennyco999)

    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-news.xml
    https://mycattips.com/sitemap-posttype-post.2021.xml

    Thread Starter jennyco999

    (@jennyco999)

    Maybe it ocurrs becase of nginx server?

    Thread Starter jennyco999

    (@jennyco999)

    But another sitemap was working….

    Thread Starter jennyco999

    (@jennyco999)

    No conflicting static files found.

    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://www.ads-software.com/support/article/nginx/ you should be fine but I suspect you have a more complex setup?

    Thread Starter jennyco999

    (@jennyco999)

    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!

    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

    (@jennyco999)

    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

    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

    (@jennyco999)

    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

    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

    (@jennyco999)

    I see, I will try to explain it to them once more. Thank you

    Thread Starter jennyco999

    (@jennyco999)

    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

    (@jennyco999)

    Solved! A redirect error is fixed by clearing browser cache!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘404 Error Occures!’ is closed to new replies.