Sitemap For Multisite Nginx

#620381
  • Resolved Anonymous
    Rank Math free

    Hi, earlier I had a 404 problem on my sitemap.xml

    I’ve fix that by clicking save on permalink settings. But in the quote there is an instruction to “contact support if I don’t know about this”.
    quote

    Also, my website is a “multisite”, so I don’t know what to do. Is there any special treatment? Or if the sitemap is already accessible there is nothing to worry about?

    Do I need to add nginx configuration even though the xml sitemap is accessible?

    Because it used to happen like this, then it was fixed, and this time it happened again.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    The correct way to use our plugins on a multisite setup is to install them on the network but only activate them on specific subsites.

    However, please note that the Ngnix rule is only necessary when the server rewrite is not working properly. But from the description you’ve shared, it looks like the issue is occurring because of caching of your website. In this case, please share your sitemap URL with us so that we can check the issue further for you.

    Meanwhile, you can try to follow the steps below and see if that works for you:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. If the above steps don’t seem to work, kindly apply the following filter to your site.

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    “The correct way to use our plugins on a multisite setup is to install them on the network but only activate them on specific subsites.”

    I just tried to disable the network and only enable it on one of the websites (main website), but the result is I can’t access the admin dashboard at all.

    I have disabled cache starting from cdn and server level, there is no way to enable rank math on one of the sites (by the way I use subdirectories, not subdomains), and it doesn’t solve the problem. I was quite frustrated with this problem

    But finally I solved it by deactivating the website temporarily via Sites > All Site > Deactivate on 2nd site > delete cache > activate rank math plugin on network (if this is checked then rank math will automatically be active on all sites) > clear cache again > Settings > Network Settings > click save (if you don’t save it still occurs 404, maybe this is because of the WPS Hidde Login plugin) > restart nginx > Sites > All Sites > edit 2nd site > click save > navigate on settings > save > go to 1st site admin > Settings > permalink > save

    Then I can access the admin dashboard on the 2nd site.

    Am I not implementing best practice? I don’t know how to disable rank math on the 2nd site after experiencing the above issues.

    Anonymous
    Rank Math free

    Hi, I’ve successfully disabled rankmath on on 2nd site.

    But after changing the sitemap from 200 to 201 and saving the settings in permalink settings (https://i.rankmath.com/pipRDp), I don’t see my 2nd site sitemap, am I missing something?

    Hello,

    Rank Math is meant to be controlled individually on your sites so you would need to visit each of your website dashboards to modify and configure Rank Math.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anonymous
    Rank Math free

    Hi, sorry for this report. I think after some time the error in search console gradually recovered, I also managed to disable network rank math (but still set it on each website), and the 404 error turned out to be due to browser cache (I just realized browser cache can redirect pages, and this is the biggest problem trigger).

    But now even new posts on each multisite are indexed, the sitemap is fine and there are no issues. Thanks for helping. I really appreciate it.

    Hello,

    Thank you for the update.

    We are glad that this issue is already resolved.

    If you have any other concerns, please don’t hesitate to contact us anytime to assist you further.

    Looking forward to helping you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘Sitemap For Multisite Nginx’ is closed to new replies.