-
Hi rankmath,
For some reason our site is not being indexed according to Google search console. It definitely was maybe a month or 2 back.
I thought the issue might be this which I found on Rank Math in our site :
“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. Click here to see the code.”This is the code:
# 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 SitemapsBut our host tried to install the nginx rules set for Rankmath SEO as mentioned here:
https://rankmath.com/kb/xml-sitemaps-nginx/The current error is since the sitemap is still not visible at :
https://dapperconfidential.com/sitemap_index.xmland they are viewing this error on the logs:
[26-Sep-2022 06:07:20 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/nginx/domains/dapperconfidential.com/public/wp-content/themes/mediavine-trellis/inc/classes/class-images.php:717) in /home/nginx/domains/dapperconfidential.com/public/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 65
This seems to be failing to load the .xsl file from rankmath.
Can you please check this.Also – yesterday the sitemap seemed to be showing up as html. Today it looks like it corrected but now we have 4 post sitemaps.
Can you please help.
You must be logged in to reply to this ticket.