XF 2.0 Sitemap issues

fotografik

Active member
Need some help with sitemap configuration. The URLs contained within the sitemap.php file all throw up a 404 error.

I can see the files (gz) inside the internal_data/sitemaps directory, but the URLs do not point there.

Eg. www.clubsnap.com/sitemap.php is accessible, but www.clubsnap.com/sitemap-1.xml is not.

Furthermore, the filenames in internal_data/sitemaps are not the same - they are tagged as sitemap-123467890-1.xml.gz
 
Update:

If I turn off Full-Friendly URLs, I get the following when going to sitemap.php

Code:
<sitemap>
<loc>http://www.clubsnap.com/sitemap.php?c=1</loc>
<lastmod>2018-03-28T22:54:10+00:00</lastmod>
</sitemap>

And typing in the sitemap.php?c=1 into the browser does bring up some results.

I am using Nginx if that can shed more light into the issue and a potential fix.
 
After some experimentation, I wrote an Nginx redirect statement to "fix". If anyone wants to use, this is the redirect:-

Code:
redirect ^/sitemap-(\d*)\.xml$ /sitemap.php?c=$1 break;

Works for now, not sure if will break in future but will monitor the Google Webmaster dashboard periodically.
 
Top Bottom