XF 2.0 Sitemap

JoyFreak

Well-known member
I was just wondering does the sitemap have to be a .txt or .xml file as I know that the Xenforo uses .php?
 
In XF2 you can add multiple ping URLs so if a particular search engine supports it you can add their ping URL in the options.

Searching for “ping” in the Admin CP should bring that up.
 
I don't understand how the XF 2 sitemap feature works. I see it there in my Admin console and it looks like it is turned on and supposed to be working. However, my Google Search Console does not seem to see the sitemap. There does not seem to be a way to even direct Google to see it. Any ideas or suggestions here?
 

Attachments

  • auto-sitemap.webp
    auto-sitemap.webp
    61.4 KB · Views: 413
  • search-console.webp
    search-console.webp
    25.2 KB · Views: 404
Sorry, but that doesn't help much. If that is required, why or where is that information communicated to a new XF 2 user/owner? In other words, type "sitemap.php" where?
 
1519235947101.webp

Well, under "Add/Test Sitemap" there's a text field. Add "sitemap.php" there to submit your sitemap to Google.

This page:

1519235989819.webp

...tells you what your sitemap URL is.

"The current sitemap can be accessed via sitemap.php"
 
sitemap.xml will probably work, but it depends on the specific XF version as it was only added recently. It might depend on whether friendly URLs are enabled or not too.

sitemap.php will work in all cases as far as I'm aware, the issue that led to us adding support for catching sitemap.xml was actually when you have a large number of entries, and it generates an index file, like this one: https://xenforo.com/community/sitemap.xml

It seemed that sitemap.php was still being read and found and processed, but it was struggling to read the old format URLs, which were previously sitemap.php?c=1 sitemap.php?c=2 etc. (Was probably the query string being stripped off or something). After we added support for these being sitemap-1.xml etc. that issue seemed to be resolved.
 
If you’re running 2.0.2 you’re fine.

If anyone goes to sitemap.xml on their site and it loads an XML file, they’ll be fine. If not then sitemap.php will always work.
 
Hi Chris: I'm experiencing the same (or a similar) problem. I submitted /sitemap.php to Google and it had more than 50,000 URLs.
I tried ?c=2 and that's an "invalid sitemap file".
I know Xenforo is meant to submit these to Google automatically, but after my site moved we dropped out of Google searches entirely so I'm working to repair that now.
 
the issue that led to us adding support for catching sitemap.xml was actually when you have a large number of entries, and it generates an index file, like this one: https://xenforo.com/community/sitemap.xml
Hi @Chris D , I have a 5,000 thread site that is generating an enormous sitemap.xml file - doesn't seem to want to index it like yours. Am I missing a config setting or something else? Right now I can only set it to show nodes
 
If only nodes are showing in the sitemap then you likely need to go to Admin CP > Setup > Options > XML sitemap generation and make sure that you have "Thread" checked under "Include sitemap content"

If that is already checked, go to Admin CP > Tools > Rebuild caches > and run the "Rebuild sitemap" job to see if anything changes.
 
Back
Top Bottom