XF 2.1 Sitemap ? No Sitemap Help?

I think you don·t need it ,because xenforo automatically submit sitemap to search engines .
Acces : yourdomain.com/admin.php?options/groups/sitemap/#sitemapAutoSubmit and check that options.

WdzFbqx.webp
 
This is no longer the submission link for google sitemaps...
http://www.google.com/webmasters/tools/ping?sitemap={$url}

This is...
http://www.google.com/ping?sitemap={$url}

Per this information (scroll down to bottom of page)...
 
  • Love
Reactions: rdn
This is no longer the submission link for google sitemaps...
http://www.google.com/webmasters/tools/ping?sitemap={$url}

This is...
http://www.google.com/ping?sitemap={$url}

Per this information (scroll down to bottom of page)...
url.com/sitemap.php

"no sitemap"
 
If sitemap.php is simply returning no sitemap then it means the sitemap hasn't been built yet or there isn't enough guest visible data to generate the sitemap.

This should change automatically after a few days, especially if more content is added.
 
When I go to myurl.com/sitemap.php, it returns an XML payload like this

XML:
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://www.mysite.com/forum/sitemap-1.xml</loc>
<lastmod>2019-03-31T03:30:15+00:00</lastmod>
</sitemap>
<sitemap>
<loc>https://www.mysite.com/forum/sitemap-2.xml</loc>
<lastmod>2019-03-31T03:30:15+00:00</lastmod>
</sitemap>
</sitemapindex>

which seems all well and good.

But shouldn't I be able to see sitemap-1.xml & sitemap-2.xml in my /forum directory? There are no sitemap*.xml files anywhere on my system.
 
There are lots of URLs in XenForo which do not directly correspond with a file on your server.

Sometimes a URL programmatically loads the contents to display. Particularly on your site, the sitemap-1.xml and sitemap-2.xml files do actually load correctly, so that's all that matters.
 
My installation returns a 404 when I enter the url/to/sitemap-1.xml
sitemap.php returns results similar to PaulaG's
Google shows success on reading the sitemap, but 0 url's
 
Last edited:
I'm not sure why I posted that going to forum/sitemap-1.xml returns the payload. That's wrong; you will get a 404. It does this because the xml doesn't physically exist as a file in the forum directory. Instead, forum/sitemap.php returns the correct sitemap payload. So sitemap.php is the URL you need to give Google search console, not the xml file name.

Even with this however, Google still couldn't index my site telling me that it was being blocked by robots.txt. I had robots.txt set to allow them in. I even removed robots.txt and it was still getting blocked. It wasn't being blocked in .htaccess either. I eventually tracked it down to a setting managed thru cPanel on the shared server we're using. In the Advanced section of cPanel I found an "Indexes" page and it was set to deny all indexing. Once I turned that off and restored my original robots.txt, Google indexed it just fine.
 
  • Like
Reactions: CNK
This is no longer the submission link for google sitemaps...
http://www.google.com/webmasters/tools/ping?sitemap={$url}

This is...
http://www.google.com/ping?sitemap={$url}

Per this information (scroll down to bottom of page)...

All http in your posting should be https :)
 
Back
Top Bottom