Issue Summary
Rank Math plugin requesting adding code to NGINX server configuration file
Troubleshooting Questions
-1) I’m not a developer. Just trying to decide if adding this code is wise or not
-2) the full notice:
" Since you are using an NGINX server, you may need to add the following code to your configuration file if your Sitemap pages are not loading . If you are unsure how to do it, please contact your hosting provider"
-3) the code itself:
# START Nginx Rewrites for Rank Math Sitemaps
rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;
# END Nginx Rewrites for Rank Math Sitemaps
-4) I just want to make sure the site map works when I migrate my localhost to my host kinsta.
Replication
not relevant
System Details
-
Which version of Local is being used? 6.10+5452
-
What Operating System (OS) and OS version is being used?
-
For example: macOS Catalina or Windows 10 Professional
MacOS 15.1
-
For example: macOS Catalina or Windows 10 Professional
-
Attach the Local Log. See this Community Forum post for instructions on how to do so: