-
Hi, I’m having trouble with sitemaps.
The sitemap index can be reached at /sitemap_index.xml but each of the sitemap links in the index returns 404. However, I manage to obtain pages by passing a request ?xsl=
on the other hand these sitesmaps seem empty, I have this message in browser:
“This XML file does not appear to have any style information associated with it. The document tree is shown below.”
I use however in the htaccess a piece of code provided by your support on another ticket:
RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L] RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L] RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
I encounter the same difficulty with robots.txt, it is not accessible from /robots.txt but the page remains reachable from ?robots=1
I try to force rewrite with this rule, but to no avail.
RewriteRule ^robots.txt$ /index.php?robots=1 [L]
Would you have a solution to these problems?
Thanks in advance
The ticket ‘Sitemap empty and url break’ is closed to new replies.